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

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