This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, c6x] handle unk_isa in TARGET_CPU_CPP_BUILTINS


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.
>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]