diff mbox

[rx] add define for RX610

Message ID 201010290613.o9T6Dmeq032026@greed.delorie.com
State New
Headers show

Commit Message

DJ Delorie Oct. 29, 2010, 6:13 a.m. UTC
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.

Comments

Richard Henderson Oct. 31, 2010, 12:30 a.m. UTC | #1
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~
DJ Delorie Nov. 1, 2010, 6:45 p.m. UTC | #2
> > 	* config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for
> > 	RX610 as well as an assertion.
> 
> Ok.

Thanks, committed.
diff mbox

Patch

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					\