summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-08-01 15:54:04 +0000
committerJeff Johnston <jjohnstn@redhat.com>2006-08-01 15:54:04 +0000
commita121349405f9daf1464042cb50995d8d0e7a7818 (patch)
treea51d8b743c4c5c6e00624ba6c023c9bf6b04eb59 /newlib/libc/include/sys
parent0a85d87f038a4dbf1453f5857f0c833f99a46220 (diff)
downloadcygnal-a121349405f9daf1464042cb50995d8d0e7a7818.tar.gz
cygnal-a121349405f9daf1464042cb50995d8d0e7a7818.tar.bz2
cygnal-a121349405f9daf1464042cb50995d8d0e7a7818.zip
2006-08-01 Thiemo Seufer <ths@mips.com>
Nigel Stephens <nigel@mips.com> * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS define this to force _impure_ptr to live in the .sdata section.
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r--newlib/libc/include/sys/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index c4e4dba9a..f436c780d 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -94,6 +94,10 @@
#endif
#endif
+#ifdef __mips__
+#define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata")))
+#endif
+
#ifdef __xstormy16__
#define __SMALL_BITFIELDS
#undef INT_MAX