diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-05 17:01:31 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-05 17:01:31 +0000 |
commit | 360ba36e1f50085700dfc10821984d8f782e1cfa (patch) | |
tree | 5ceb7f827fd279587802dbcf6d2e5bf81649bfc0 /gcc/config/i386/linux.h | |
parent | 1de69aa6b75483d92756f490b97dbfefab9d7fed (diff) | |
download | gcc-360ba36e1f50085700dfc10821984d8f782e1cfa.tar.gz |
config:
* alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
* i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
CPP_PREDEFINES and part of CPP_SPEC.
i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54286 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/linux.h')
-rw-r--r-- | gcc/config/i386/linux.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index 232a9eec5e4..3bc20fe5410 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -80,14 +80,27 @@ Boston, MA 02111-1307, USA. */ #undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE BITS_PER_WORD -#undef CPP_PREDEFINES -#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -Asystem=posix" +#define TARGET_OS_CPP_BUILTINS() \ + do \ + { \ + builtin_define_std ("linux"); \ + builtin_define_std ("unix"); \ + builtin_define ("__ELF__"); \ + builtin_define ("__gnu_linux__"); \ + builtin_assert ("system=posix"); \ + if (flag_pic) \ + { \ + builtin_define ("__PIC__"); \ + builtin_define ("__pic__"); \ + } \ + } \ + while (0) #undef CPP_SPEC #ifdef USE_GNULIBC_1 -#define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}" +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}" #else -#define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" #endif #undef CC1_SPEC |