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]

mips/rtems impure pointer attribute


Hi,

Hopefully Ralf and I can manage to get the
rest of the RTEMS diff submitted quickly.

This one is small but needed because mips/rtems
is always built with -G0.  The setting of this
attribute results in the impure_ptr always being
in .sdata and somewhat randomly we get application
link failures on the mips.

I think this is the least invasive way to do this.
But alternatives always welcomed.

2008-11-19 Joel Sherrill <joel.sherrill@oarcorp.com>

   * libc/include/sys/config.h: Do not use .sdata
   for impure_ptr on mips-rtems.

--
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985


Index: libc/include/sys/config.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/config.h,v
retrieving revision 1.47
diff -u -r1.47 config.h
--- libc/include/sys/config.h	15 Mar 2007 21:32:12 -0000	1.47
+++ libc/include/sys/config.h	19 Nov 2008 20:25:01 -0000
@@ -94,7 +94,7 @@
 #endif
 #endif
 
-#ifdef __mips__
+#if defined(__mips__) && !defined(__rtems__)
 #define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata")))
 #endif
 

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