]> gcc.gnu.org Git - gcc.git/commitdiff
c6x: handle c6x unk_isa in TARGET_CPU_CPP_BUILTINS
authorBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Wed, 22 Apr 2015 08:10:18 +0000 (10:10 +0200)
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Wed, 22 Apr 2015 08:10:18 +0000 (10:10 +0200)
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

gcc/ChangeLog
gcc/config/c6x/c6x.h

index 2fb0dd1be183625cc0f393e93f8461c22429071f..0f17b7c4d52115676a93df3fec1af91bf58c1eff 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 58a7ac63a8983e687dd0c1773c4811f7b151e64b..9b3fcfbd5e699cb3232b5cf5889a29e529ea3f63 100644 (file)
@@ -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;                                \
This page took 0.074286 seconds and 5 git commands to generate.