This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]