diff --git a/newlib/ChangeLog b/newlib/ChangeLog index f94117f80..c186a4728 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ +2008-11-19 Joel Sherrill + + * 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 * 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 540805be2..3084193f5 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