public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: DJ Delorie <dj@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: [rx] add define for RX610
Date: Fri, 29 Oct 2010 12:27:00 -0000	[thread overview]
Message-ID: <201010290613.o9T6Dmeq032026@greed.delorie.com> (raw)


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					\

             reply	other threads:[~2010-10-29  6:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-29 12:27 DJ Delorie [this message]
2010-10-31 14:39 ` Richard Henderson
2010-11-01 18:58   ` DJ Delorie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201010290613.o9T6Dmeq032026@greed.delorie.com \
    --to=dj@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).