diff options
author | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-09 01:20:03 +0000 |
---|---|---|
committer | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-09 01:20:03 +0000 |
commit | 7877f8b5c462e2d3cc51c5a1712dc80e23b9583e (patch) | |
tree | 913ded9b8b4eca49a4b84321520a46f133e80a43 /gcc/config/cris/linux.h | |
parent | 349c1de27dda8bf56850cd04ef1cca9fa808bd28 (diff) | |
download | gcc-7877f8b5c462e2d3cc51c5a1712dc80e23b9583e.tar.gz |
* config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
(TARGET_OS_CPP_BUILTINS): New macro.
* config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
(TARGET_OS_CPP_BUILTINS): New macro.
(CPP_PREDEFINES): Don't define. Move old definitions and...
(CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
(TARGET_CPU_CPP_BUILTINS): New macro.
* config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
definitions and the optional __PIC__, __pic__ and
__NO_UNDERSCORES__ definitions to...
(TARGET_OS_CPP_BUILTINS): New macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64014 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/cris/linux.h')
-rw-r--r-- | gcc/config/cris/linux.h | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/gcc/config/cris/linux.h b/gcc/config/cris/linux.h index 546f38101b9..f85743f7a9a 100644 --- a/gcc/config/cris/linux.h +++ b/gcc/config/cris/linux.h @@ -1,5 +1,5 @@ /* Definitions for GCC. Part of the machine description for CRIS. - Copyright (C) 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. Contributed by Axis Communications. Written by Hans-Peter Nilsson. This file is part of GCC. @@ -47,10 +47,7 @@ Boston, MA 02111-1307, USA. */ #undef CRIS_CPP_SUBTARGET_SPEC #define CRIS_CPP_SUBTARGET_SPEC \ - "-D__gnu_linux__ -D__linux__ -D__unix__ -D__ELF__\ - %{pthread:-D_REENTRANT}\ - %{fPIC|fpic: -D__PIC__ -D__pic__}\ - %{!fleading-underscore:-fno-leading-underscore -D__NO_UNDERSCORES__}\ + "%{pthread:-D_REENTRANT}\ %{!march=*:%{!cpu=*:-D__arch_v10 -D__CRIS_arch_version=10}}\ %{!ansi:%{!std=*:%{!undef:-Dlinux -Dunix}\ -Asystem(unix) -Asystem(posix) -Acpu(cris) -Amachine(cris)}}" @@ -99,6 +96,28 @@ Boston, MA 02111-1307, USA. */ %{!r:%{O2|O3: --gc-sections}}" +/* Node: Run-time Target */ + +/* For the cris-*-linux* subtarget. */ +#undef TARGET_OS_CPP_BUILTINS +#define TARGET_OS_CPP_BUILTINS() \ + do \ + { \ + builtin_define ("__gnu_linux__"); \ + builtin_define ("__linux__"); \ + builtin_define ("__unix__"); \ + builtin_define ("__ELF__"); \ + if (flag_pic) \ + { \ + builtin_define ("__PIC__"); \ + builtin_define ("__pic__"); \ + } \ + if (flag_leading_underscore <= 0) \ + builtin_define ("__NO_UNDERSCORES__"); \ + } \ + while (0) + + /* Node: Sections */ /* GNU/Linux has crti and crtn and does not need the |