diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ddaf7da17e4..46e6d3eedc2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2003-03-08 Neil Booth + + * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of + CPP_PREDEFINES. + * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of + CPP_PREDEFINES. + 2003-03-08 Neil Booth * c-common.h (c_common_init, c_common_post_options): Update. diff --git a/gcc/config/sh/rtems.h b/gcc/config/sh/rtems.h index b52ef7216ec..f501d19240f 100644 --- a/gcc/config/sh/rtems.h +++ b/gcc/config/sh/rtems.h @@ -21,6 +21,7 @@ Boston, MA 02111-1307, USA. */ /* Specify predefined symbols in preprocessor. */ -#undef CPP_PREDEFINES -#define CPP_PREDEFINES "-D__sh__ -D__rtems__ \ - -Asystem=rtems -Acpu=sh -Amachine=sh" +#define TARGET_OS_CPP_BUILTINS() do { \ + builtin_define( "__rtems__" ); \ + builtin_assert( "system=rtems" ); \ +} while (0) diff --git a/gcc/config/sh/rtemself.h b/gcc/config/sh/rtemself.h index 6177c810dd1..ee98cda91f3 100644 --- a/gcc/config/sh/rtemself.h +++ b/gcc/config/sh/rtemself.h @@ -21,6 +21,8 @@ Boston, MA 02111-1307, USA. */ /* Specify predefined symbols in preprocessor. */ -#undef CPP_PREDEFINES -#define CPP_PREDEFINES "-D__sh__ -D__ELF__ -D__rtems__ \ - -Asystem=rtems -Acpu=sh -Amachine=sh" +#define TARGET_OS_CPP_BUILTINS() do { \ + builtin_define( "__rtems__" ); \ + builtin_define( "__ELF__" ); \ + builtin_assert( "system=rtems" ); \ +} while (0)