From 0e9810262d347f04ccaf4cb947d0c374cba09b0c Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 19 Nov 2008 21:05:31 +0000 Subject: [PATCH] 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. --- newlib/ChangeLog | 7 +++++++ newlib/libc/include/sys/config.h | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) 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