diff options
author | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2015-04-22 10:05:20 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2015-04-22 10:05:20 +0200 |
commit | 0828c47bb4729348ae44fc555c334ba4f8e4d28b (patch) | |
tree | db10c5bd4f90049a155029a4d9d69bf18c518e13 /gcc/config/bfin | |
parent | eefe4e49f4727e475e11e29c45b31736cc1963f6 (diff) | |
download | gcc-0828c47bb4729348ae44fc555c334ba4f8e4d28b.zip gcc-0828c47bb4729348ae44fc555c334ba4f8e4d28b.tar.gz gcc-0828c47bb4729348ae44fc555c334ba4f8e4d28b.tar.bz2 |
bfin: handle BFIN_CPU_UNKNOWN in TARGET_CPU_CPP_BUILTINS
gcc/c-family/c-cppbuiltin.c
In file included from ./tm.h:21:0,
from
../../../../../../home/me/src/gcc-5.0.mine/gcc/c-family/c-cppbuiltin.c:23:
../../../../../../home/me/src/gcc-5.0.mine/gcc/c-family/c-cppbuiltin.c:
In function ‘void c_cpp_builtins(cpp_reader*)’:
../../../../../../home/me/src/gcc-5.0.mine/gcc/config/bfin/bfin.h:43:14:
error: enumeration value ‘BFIN_CPU_UNKNOWN’ not handled in switch
[-Werror=switch]
switch (bfin_cpu_type) \
^
../../../../../../home/me/src/gcc-5.0.mine/gcc/c-family/c-cppbuiltin.c:1243:3:
note: in expansion of macro ‘TARGET_CPU_CPP_BUILTINS’
TARGET_CPU_CPP_BUILTINS ();
^
cc1plus: all warnings being treated as errors
make[2]: *** [c-family/c-cppbuiltin.o] Error 1
Maybe seeing BFIN_CPU_UNKNOWN in the cpu switch statement should
__builtin_abort() but be conservative to just allow all-gcc of config-list.mk
to compile
From-SVN: r222307
Diffstat (limited to 'gcc/config/bfin')
-rw-r--r-- | gcc/config/bfin/bfin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h index fd90199..49cc741 100644 --- a/gcc/config/bfin/bfin.h +++ b/gcc/config/bfin/bfin.h @@ -42,6 +42,8 @@ \ switch (bfin_cpu_type) \ { \ + case BFIN_CPU_UNKNOWN: \ + break; \ case BFIN_CPU_BF512: \ builtin_define ("__ADSPBF512__"); \ builtin_define ("__ADSPBF51x__"); \ |