diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-02 11:54:58 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-02 11:54:58 +0000 |
commit | c378948ce274824ad351d9cdc2089f1706b26c26 (patch) | |
tree | 82efdc3c51c1534274085e6cb195e2938959d8f8 /gcc/config/spu | |
parent | 1e23708870abe21bc45cfd171f3c329bcca30b9c (diff) | |
download | gcc-c378948ce274824ad351d9cdc2089f1706b26c26.tar.gz |
PR preprocessor/61977
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
predefine __vector/__bool/__pixel macros nor context sensitive
macros for CLK_ASM.
* config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221838 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/spu')
-rw-r--r-- | gcc/config/spu/spu-c.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/spu/spu-c.c b/gcc/config/spu/spu-c.c index 739fa67127e..03b818c4a31 100644 --- a/gcc/config/spu/spu-c.c +++ b/gcc/config/spu/spu-c.c @@ -203,7 +203,8 @@ spu_cpu_cpp_builtins (struct cpp_reader *pfile) cpp_assert (pfile, "machine=spu"); if (spu_arch == PROCESSOR_CELLEDP) cpp_define (pfile, "__SPU_EDP__"); - cpp_define (pfile, "__vector=__attribute__((__spu_vector__))"); + if (cpp_get_options (pfile)->lang != CLK_ASM) + cpp_define (pfile, "__vector=__attribute__((__spu_vector__))"); switch (spu_ea_model) { case 32: @@ -216,7 +217,7 @@ spu_cpu_cpp_builtins (struct cpp_reader *pfile) gcc_unreachable (); } - if (!flag_iso) + if (!flag_iso && cpp_get_options (pfile)->lang != CLK_ASM) { /* Define this when supporting context-sensitive keywords. */ cpp_define (pfile, "__VECTOR_KEYWORD_SUPPORTED__"); |