diff options
author | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2015-04-22 10:10:18 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2015-04-22 10:10:18 +0200 |
commit | baa59cde376dbd90f95d60f46299f1c4ae5674b2 (patch) | |
tree | 80eeea07ea7e6ee699b238c7e2f9549967ced6da /gcc | |
parent | 0828c47bb4729348ae44fc555c334ba4f8e4d28b (diff) | |
download | gcc-baa59cde376dbd90f95d60f46299f1c4ae5674b2.zip gcc-baa59cde376dbd90f95d60f46299f1c4ae5674b2.tar.gz gcc-baa59cde376dbd90f95d60f46299f1c4ae5674b2.tar.bz2 |
c6x: handle c6x unk_isa in TARGET_CPU_CPP_BUILTINS
Fixes all-gcc for c6x config-list.mk that complained about
error: enumeration value ‘unk_isa’ not handled in switch
Maybe seeing unk_isa in the cpu switch statement should
__builtin_abort() but be conservative to just allow all-gcc of config-list.mk
to compile
From-SVN: r222308
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/c6x/c6x.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2fb0dd1..0f17b7c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> + * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa. + +2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> + * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN. 2015-04-22 Hale Wang <hale.wang@arm.com> diff --git a/gcc/config/c6x/c6x.h b/gcc/config/c6x/c6x.h index 58a7ac6..9b3fcfb 100644 --- a/gcc/config/c6x/c6x.h +++ b/gcc/config/c6x/c6x.h @@ -84,6 +84,8 @@ extern c6x_cpu_t c6x_arch; \ switch (c6x_arch) \ { \ + case unk_isa: \ + break; \ case C6X_CPU_C62X: \ builtin_define ("_TMS320C6200"); \ break; \ |