aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-11-19 21:05:31 +0000
committerJeff Johnston <jjohnstn@redhat.com>2008-11-19 21:05:31 +0000
commit0e9810262d347f04ccaf4cb947d0c374cba09b0c (patch)
treef164f94f59ea200ea838dbc394f1e6380b2d52e5 /newlib
parent8ee939ea9f395f95357612d64d9be8e9a6529e46 (diff)
downloadnewlib-0e9810262d347f04ccaf4cb947d0c374cba09b0c.zip
newlib-0e9810262d347f04ccaf4cb947d0c374cba09b0c.tar.gz
newlib-0e9810262d347f04ccaf4cb947d0c374cba09b0c.tar.bz2
2008-11-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/include/sys/config.h[__mips__]: Don't bother setting __ATTRIBUTE_IMPURE_PTR__ here. [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__ macro anymore.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog7
-rw-r--r--newlib/libc/include/sys/config.h6
2 files changed, 8 insertions, 5 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index f94117f..c186a47 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,10 @@
+2008-11-19 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * libc/include/sys/config.h[__mips__]: Don't bother
+ setting __ATTRIBUTE_IMPURE_PTR__ here.
+ [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
+ macro anymore.
+
2008-11-19 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/bits/dirent.h: New header file.
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index 540805b..3084193 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -94,7 +94,7 @@
#endif
#endif
-#ifdef __mips__
+#if defined(__mips__) && !defined(__rtems__)
#define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata")))
#endif
@@ -183,10 +183,6 @@
#if defined(__rtems__)
#define __FILENAME_MAX__ 255
#define _READ_WRITE_RETURN_TYPE _ssize_t
-#if defined(__mips__)
-#undef __ATTRIBUTE_IMPURE_PTR__
-#define __ATTRIBUTE_IMPURE_PTR__
-#endif
#endif
#ifndef __IMPORT