diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-05-17 07:37:44 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-05-17 07:37:44 +0000 |
commit | 8d55c1641ec3367e0d6ce6ab44055446bb82773b (patch) | |
tree | 46c6543989dd5a31191894cf76c859fae8f4ceaf /gcc/config/i960 | |
parent | 9b8466f43d9a3d82e5e7a89fda55d5e0676ac4c7 (diff) | |
download | gcc-8d55c1641ec3367e0d6ce6ab44055446bb82773b.zip gcc-8d55c1641ec3367e0d6ce6ab44055446bb82773b.tar.gz gcc-8d55c1641ec3367e0d6ce6ab44055446bb82773b.tar.bz2 |
i960.h, rtems.h: Use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS in preference to...
* i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
From-SVN: r66903
Diffstat (limited to 'gcc/config/i960')
-rw-r--r-- | gcc/config/i960/i960.h | 16 | ||||
-rw-r--r-- | gcc/config/i960/rtems.h | 13 |
2 files changed, 21 insertions, 8 deletions
diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index a6d87d2..595dc44 100644 --- a/gcc/config/i960/i960.h +++ b/gcc/config/i960/i960.h @@ -25,10 +25,20 @@ Boston, MA 02111-1307, USA. */ /* Note that some other tm.h files may include this one and then override many of the definitions that relate to assembler syntax. */ -#define MULTILIB_DEFAULTS { "mnumerics" } +/* Target CPU builtins. */ +#define TARGET_CPU_CPP_BUILTINS() \ + do \ + { \ + builtin_define_std ("i960"); \ + builtin_define_std ("I960"); \ + builtin_define_std ("i80960"); \ + builtin_define_std ("I80960"); \ + builtin_assert ("cpu=i960"); \ + builtin_assert ("machine=i960"); \ + } \ + while (0) -/* Names to predefine in the preprocessor for this target machine. */ -#define CPP_PREDEFINES "-Di960 -Di80960 -DI960 -DI80960 -Acpu=i960 -Amachine=i960" +#define MULTILIB_DEFAULTS { "mnumerics" } /* Name to predefine in the preprocessor for processor variations. -mic* options make characters signed by default. */ diff --git a/gcc/config/i960/rtems.h b/gcc/config/i960/rtems.h index 411acfc..4f6059f 100644 --- a/gcc/config/i960/rtems.h +++ b/gcc/config/i960/rtems.h @@ -19,8 +19,11 @@ along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* Specify predefined symbols in preprocessor. */ - -#undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Di960 -Di80960 -DI960 -DI80960 -D__rtems__ \ - -Asystem=rtems -Acpu=i960 -Amachine=i960" +/* Target OS builtins. */ +#define TARGET_OS_CPP_BUILTINS() \ + do \ + { \ + builtin_define ("__rtems__"); \ + builtin_assert ("system=rtems"); \ + } \ + while (0) |