diff mbox

[c6x] handle unk_isa in TARGET_CPU_CPP_BUILTINS

Message ID 20150402204925.GA24017@mx.loc
State New
Headers show

Commit Message

Bernhard Reutner-Fischer April 2, 2015, 8:49 p.m. UTC
On Wed, Apr 01, 2015 at 11:37:41PM +0200, Bernhard Reutner-Fischer wrote:
>Bernd,
>
>same for c6x for unk_isa, fwiw.

Attached.

Ok for trunk for the c6x bits?
Ok for trunk for the bfin bits?

thanks,
>
>thanks,
>
>On 1 April 2015 at 23:34, Bernhard Reutner-Fischer
><rep.dot.nop@gmail.com> wrote:
>> Hi,
>>
>> 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
>>
>> gcc/ChangeLog:
>>
>> 2015-04-01  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
>>
>>       * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.

Comments

Bernhard Reutner-Fischer April 8, 2015, 8:13 p.m. UTC | #1
ping

On 2 April 2015 at 22:49, Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com> wrote:
> On Wed, Apr 01, 2015 at 11:37:41PM +0200, Bernhard Reutner-Fischer wrote:
>>Bernd,
>>
>>same for c6x for unk_isa, fwiw.
>
> Attached.
>
> Ok for trunk for the c6x bits?
> Ok for trunk for the bfin bits?
>
> thanks,
Bernhard Reutner-Fischer April 22, 2015, 8:12 a.m. UTC | #2
On 8 April 2015 at 22:13, Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com> wrote:
> ping

This was OKed by Jeff and committed to trunk as r222308.
thanks,
>
> On 2 April 2015 at 22:49, Bernhard Reutner-Fischer
> <rep.dot.nop@gmail.com> wrote:
>> On Wed, Apr 01, 2015 at 11:37:41PM +0200, Bernhard Reutner-Fischer wrote:
>>>Bernd,
>>>
>>>same for c6x for unk_isa, fwiw.
>>
>> Attached.
>>
>> Ok for trunk for the c6x bits?
>> Ok for trunk for the bfin bits?
>>
>> thanks,
diff mbox

Patch

From da0fd9e46efb975f8e5d8854f221689ff8808bc5 Mon Sep 17 00:00:00 2001
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Date: Thu, 1 Apr 2015 23:42:08 +0200
Subject: [PATCH 6/6] handle c6x unk_isa in TARGET_CPU_CPP_BUILTINS

gcc/ChangeLog:

2015-04-01  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

    * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 gcc/config/c6x/c6x.h |    2 ++
 1 file changed, 2 insertions(+)

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;				\
-- 
1.7.10.4