This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFA: Add cpu and machine asserts for MN10300


Hi Jeff, Hi Alex,

  May I apply the small patch below please ?  It updates the
  TARGET_CPU_CPP_BUILTINS macro for the MN10300 port so that it
  includes an assert for "cpu" and "machine".  I found that this was
  necessary in order to fix an unexpected failure from the gcc
  testsuite (gcc.dg/cpp/assert4.c).

Cheers
  Nick

gcc/ChangeLog
2006-08-24  Nick Clifton  <nickc@redhat.com>

	* config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
          assertions of "cpu" and "machine".

Index: gcc/config/mn10300/mn10300.h
===================================================================
--- gcc/config/mn10300/mn10300.h	(revision 116370)
+++ gcc/config/mn10300/mn10300.h	(working copy)
@@ -37,6 +37,8 @@ Boston, MA 02110-1301, USA.  */
     {						\
       builtin_define ("__mn10300__");		\
       builtin_define ("__MN10300__");		\
+      builtin_assert ("cpu=mn10300");		\
+      builtin_assert ("machine=mn10300");	\
     }						\
   while (0)
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]