This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] add __amd64__ predefined symbols
- From: "David O'Brien" <obrien at FreeBSD dot org>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 26 Apr 2003 12:39:37 -0700
- Subject: [PATCH] add __amd64__ predefined symbols
- Organization: The NUXI BSD Group
- Reply-to: obrien at FreeBSD dot org
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)