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]

[PATCH] add __amd64__ predefined symbols


I'd like to commit this to mainline, and the appropriate patch for 3.3
branch also.  FreeBSD is calling the platform by the AMD marketing name.


2003-04-27  David O'Brien  <obrien at FreeBSD dot org>

	* config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.

Index: config/i386/i386.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.h,v
retrieving revision 1.333
diff -u -r1.333 i386.h
--- config/i386/i386.h	17 Apr 2003 23:18:55 -0000	1.333
+++ config/i386/i386.h	26 Apr 2003 19:37:39 -0000
@@ -520,6 +520,8 @@
 	  builtin_assert ("machine=x86_64");			\
 	  builtin_define ("__x86_64");				\
 	  builtin_define ("__x86_64__");			\
+	  builtin_define ("__amd64");				\
+	  builtin_define ("__amd64__");				\
 	}							\
       else							\
 	{							\

-- 
-- David  (obrien at FreeBSD dot org)


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