From baa59cde376dbd90f95d60f46299f1c4ae5674b2 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 22 Apr 2015 10:10:18 +0200 Subject: [PATCH] c6x: handle c6x unk_isa in TARGET_CPU_CPP_BUILTINS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 4 ++++ gcc/config/c6x/c6x.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2fb0dd1be18..0f17b7c4d52 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-04-22 Bernhard Reutner-Fischer + + * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa. + 2015-04-22 Bernhard Reutner-Fischer * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN. diff --git a/gcc/config/c6x/c6x.h b/gcc/config/c6x/c6x.h index 58a7ac63a89..9b3fcfbd5e6 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; \ -- 2.30.2