public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, bfin] handle BFIN_CPU_UNKNOWN in TARGET_CPU_CPP_BUILTINS
@ 2015-04-01 21:34 Bernhard Reutner-Fischer
  2015-04-01 21:37 ` Bernhard Reutner-Fischer
  2015-04-08 20:12 ` [PATCH, bfin] handle BFIN_CPU_UNKNOWN " Bernhard Reutner-Fischer
  0 siblings, 2 replies; 7+ messages in thread
From: Bernhard Reutner-Fischer @ 2015-04-01 21:34 UTC (permalink / raw)
  To: Bernd Schmidt, Jie Zhang; +Cc: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

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.

[-- Attachment #2: bfin-cpu-cpp-builtin.00.patch --]
[-- Type: text/x-patch, Size: 372 bytes --]

diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h
index fd90199..49cc741 100644
--- a/gcc/config/bfin/bfin.h
+++ b/gcc/config/bfin/bfin.h
@@ -42,6 +42,8 @@
 						\
       switch (bfin_cpu_type)			\
 	{					\
+	case BFIN_CPU_UNKNOWN:			\
+	  break;				\
 	case BFIN_CPU_BF512:			\
 	  builtin_define ("__ADSPBF512__");	\
 	  builtin_define ("__ADSPBF51x__");	\

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH, bfin] handle BFIN_CPU_UNKNOWN in TARGET_CPU_CPP_BUILTINS
  2015-04-01 21:34 [PATCH, bfin] handle BFIN_CPU_UNKNOWN in TARGET_CPU_CPP_BUILTINS Bernhard Reutner-Fischer
@ 2015-04-01 21:37 ` Bernhard Reutner-Fischer
  2015-04-02 20:49   ` [PATCH, c6x] handle unk_isa " Bernhard Reutner-Fischer
  2015-04-08 20:12 ` [PATCH, bfin] handle BFIN_CPU_UNKNOWN " Bernhard Reutner-Fischer
  1 sibling, 1 reply; 7+ messages in thread
From: Bernhard Reutner-Fischer @ 2015-04-01 21:37 UTC (permalink / raw)
  To: Bernd Schmidt, Jie Zhang; +Cc: GCC Patches

Bernd,

same for c6x for unk_isa, fwiw.

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH, c6x] handle unk_isa in TARGET_CPU_CPP_BUILTINS
  2015-04-01 21:37 ` Bernhard Reutner-Fischer
@ 2015-04-02 20:49   ` Bernhard Reutner-Fischer
  2015-04-08 20:13     ` Bernhard Reutner-Fischer
  0 siblings, 1 reply; 7+ messages in thread
From: Bernhard Reutner-Fischer @ 2015-04-02 20:49 UTC (permalink / raw)
  To: Bernd Schmidt, Jie Zhang; +Cc: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 1304 bytes --]

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.

[-- Attachment #2: 0006-handle-c6x-unk_isa-in-TARGET_CPU_CPP_BUILTINS.patch --]
[-- Type: text/x-diff, Size: 870 bytes --]

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH, bfin] handle BFIN_CPU_UNKNOWN in TARGET_CPU_CPP_BUILTINS
  2015-04-01 21:34 [PATCH, bfin] handle BFIN_CPU_UNKNOWN in TARGET_CPU_CPP_BUILTINS Bernhard Reutner-Fischer
  2015-04-01 21:37 ` Bernhard Reutner-Fischer
@ 2015-04-08 20:12 ` Bernhard Reutner-Fischer
  2015-04-22  8:11   ` Bernhard Reutner-Fischer
  1 sibling, 1 reply; 7+ messages in thread
From: Bernhard Reutner-Fischer @ 2015-04-08 20:12 UTC (permalink / raw)
  To: Bernd Schmidt, Jie Zhang; +Cc: GCC Patches

ping

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH, c6x] handle unk_isa in TARGET_CPU_CPP_BUILTINS
  2015-04-02 20:49   ` [PATCH, c6x] handle unk_isa " Bernhard Reutner-Fischer
@ 2015-04-08 20:13     ` Bernhard Reutner-Fischer
  2015-04-22  8:12       ` Bernhard Reutner-Fischer
  0 siblings, 1 reply; 7+ messages in thread
From: Bernhard Reutner-Fischer @ 2015-04-08 20:13 UTC (permalink / raw)
  To: Bernd Schmidt, Jie Zhang; +Cc: GCC Patches

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,

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH, bfin] handle BFIN_CPU_UNKNOWN in TARGET_CPU_CPP_BUILTINS
  2015-04-08 20:12 ` [PATCH, bfin] handle BFIN_CPU_UNKNOWN " Bernhard Reutner-Fischer
@ 2015-04-22  8:11   ` Bernhard Reutner-Fischer
  0 siblings, 0 replies; 7+ messages in thread
From: Bernhard Reutner-Fischer @ 2015-04-22  8:11 UTC (permalink / raw)
  To: Bernd Schmidt, Jie Zhang; +Cc: GCC Patches, Jeff Law

On 8 April 2015 at 22:12, Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com> wrote:
> ping

This was OK'ed by Jeff and committed to trunk as r222307.
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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH, c6x] handle unk_isa in TARGET_CPU_CPP_BUILTINS
  2015-04-08 20:13     ` Bernhard Reutner-Fischer
@ 2015-04-22  8:12       ` Bernhard Reutner-Fischer
  0 siblings, 0 replies; 7+ messages in thread
From: Bernhard Reutner-Fischer @ 2015-04-22  8:12 UTC (permalink / raw)
  To: Bernd Schmidt, Jie Zhang; +Cc: GCC Patches, Jeff Law

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,

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-22  8:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-01 21:34 [PATCH, bfin] handle BFIN_CPU_UNKNOWN in TARGET_CPU_CPP_BUILTINS Bernhard Reutner-Fischer
2015-04-01 21:37 ` Bernhard Reutner-Fischer
2015-04-02 20:49   ` [PATCH, c6x] handle unk_isa " Bernhard Reutner-Fischer
2015-04-08 20:13     ` Bernhard Reutner-Fischer
2015-04-22  8:12       ` Bernhard Reutner-Fischer
2015-04-08 20:12 ` [PATCH, bfin] handle BFIN_CPU_UNKNOWN " Bernhard Reutner-Fischer
2015-04-22  8:11   ` Bernhard Reutner-Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).