diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-02 19:39:09 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-02 19:39:09 +0000 |
| commit | 1396ec95f36c0b660373726c5ac061ca32a20d3b (patch) | |
| tree | 8d10e49a611643c7c4d7e706bf0832aadb120ee1 /gcc | |
| parent | f5ec8cb5950aa7471a955979c0aea3019dab2a54 (diff) | |
| download | ppe42-gcc-1396ec95f36c0b660373726c5ac061ca32a20d3b.tar.gz ppe42-gcc-1396ec95f36c0b660373726c5ac061ca32a20d3b.zip | |
* config/dsp16xx/dsp16xx.h: Update to new CPP macros.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54181 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/config/dsp16xx/dsp16xx.h | 27 |
2 files changed, 25 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69f0eab2f4c..7bf78c0175b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk> + * config/dsp16xx/dsp16xx.h: Update to new CPP macros. + +2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk> + * c-common.c (c_common_init): Override cpplib's default warn_long_long setting. * c-lex.c (lex_number): Replace with interpret_integer, diff --git a/gcc/config/dsp16xx/dsp16xx.h b/gcc/config/dsp16xx/dsp16xx.h index 4bbe64183d6..780c8c39f0c 100644 --- a/gcc/config/dsp16xx/dsp16xx.h +++ b/gcc/config/dsp16xx/dsp16xx.h @@ -71,13 +71,9 @@ extern struct rtx_def *dsp16xx_lshrhi3_libcall; (!strcmp (STR, "ifile") ? 1 : \ 0) -#ifdef CC1_SPEC #undef CC1_SPEC -#endif #define CC1_SPEC "%{!O*:-O}" -#define CPP_SPEC "%{!O*:-D__OPTIMIZE__}" - /* Define this as a spec to call the AT&T assembler */ #define CROSS_ASM_SPEC "%{!S:as1600 %a %i\n }" @@ -138,10 +134,29 @@ extern struct rtx_def *dsp16xx_lshrhi3_libcall; } /* Names to predefine in the preprocessor for this target machine. */ +#define TARGET_CPU_CPP_BUILTINS() \ + do \ + { \ + builtin_define_std ("dsp1600"); \ + builtin_define_std ("DSP1600"); \ + } \ + while (0) + #ifdef __MSDOS__ -#define CPP_PREDEFINES "-Ddsp1600 -DDSP1600 -DMSDOS" +# define TARGET_OS_CPP_BUILTINS() \ + do \ + { \ + builtin_define_std ("MSDOS"); \ + } \ + while (0) #else -#define CPP_PREDEFINES "-Ddsp1600 -DDSP1600 -Ddsp1610 -DDSP1610" +# define TARGET_OS_CPP_BUILTINS() \ + do \ + { \ + builtin_define_std ("dsp1610"); \ + builtin_define_std ("DSP1610"); \ + } \ + while (0) #endif /* Run-time compilation parameters selecting different hardware subsets. */ |

