Patchwork [rx] add define for RX610

login
register
mail settings
Submitter DJ Delorie
Date Oct. 29, 2010, 6:13 a.m.
Message ID <201010290613.o9T6Dmeq032026@greed.delorie.com>
Download mbox | patch
Permalink /patch/69558/
State New
Headers show

Comments

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

Thanks, committed.

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					\