This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
PATCH: unimplemented system call warnings are optimised away
- From: "Jon Beniston" <jon at beniston dot com>
- To: <newlib at sources dot redhat dot com>
- Date: Thu, 18 Aug 2005 01:13:16 +0100
- Subject: PATCH: unimplemented system call warnings are optimised away
Hi,
Currently unimplemented system call warnings can be optimized away, as the
strings generated by libgloss/libnosys/warning.h are not referenced. This
patch tries to fix that.
Cheers,
Jon
2005-08-18 Jon Beniston <jon@beniston.com>
* libgloss/libnosys/warning.h: Add used attribute so
strings are not optimised away.
Index: libgloss/libnosys/warning.h
===================================================================
RCS file: /home/lm32/newlib/libgloss/libnosys/warning.h,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 warning.h
22c22
< __attribute__ ((section (".gnu.warning." #symbol))) = msg;
---
> __attribute__ ((used, section (".gnu.warning." #symbol))) = msg;