public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [rx] add define for RX610
@ 2010-10-29 12:27 DJ Delorie
  2010-10-31 14:39 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: DJ Delorie @ 2010-10-29 12:27 UTC (permalink / raw)
  To: gcc-patches


If you try to use assertions, gcc complains that they're deprecated,
but the RX610 is missing some opcodes.  This adds a #define for that
chip as well.  Ok?

	* config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for
	RX610 as well as an assertion.

Index: rx.h
===================================================================
--- rx.h	(revision 166029)
+++ rx.h	(working copy)
@@ -22,13 +22,16 @@
 #define TARGET_CPU_CPP_BUILTINS()               \
   do                                            \
     {                                           \
       builtin_define ("__RX__"); 		\
       builtin_assert ("cpu=RX"); 		\
       if (rx_cpu_type == RX610)			\
-        builtin_assert ("machine=RX610");	\
+	{					\
+          builtin_define ("__RX610__");		\
+          builtin_assert ("machine=RX610");	\
+	}					\
      else					\
         builtin_assert ("machine=RX600");	\
       						\
       if (TARGET_BIG_ENDIAN_DATA)		\
 	builtin_define ("__RX_BIG_ENDIAN__");	\
       else					\

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

* Re: [rx] add define for RX610
  2010-10-29 12:27 [rx] add define for RX610 DJ Delorie
@ 2010-10-31 14:39 ` Richard Henderson
  2010-11-01 18:58   ` DJ Delorie
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2010-10-31 14:39 UTC (permalink / raw)
  To: DJ Delorie; +Cc: gcc-patches

On 10/28/2010 11:13 PM, DJ Delorie wrote:
> If you try to use assertions, gcc complains that they're deprecated,
> but the RX610 is missing some opcodes.  This adds a #define for that
> chip as well.  Ok?
> 
> 	* config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for
> 	RX610 as well as an assertion.

Ok.


r~

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

* Re: [rx] add define for RX610
  2010-10-31 14:39 ` Richard Henderson
@ 2010-11-01 18:58   ` DJ Delorie
  0 siblings, 0 replies; 3+ messages in thread
From: DJ Delorie @ 2010-11-01 18:58 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gcc-patches


> > 	* config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for
> > 	RX610 as well as an assertion.
> 
> Ok.

Thanks, committed.

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

end of thread, other threads:[~2010-11-01 18:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-29 12:27 [rx] add define for RX610 DJ Delorie
2010-10-31 14:39 ` Richard Henderson
2010-11-01 18:58   ` DJ Delorie

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