Backported from mainline
* config/i386/i386-c.c (ix86_target_macros): Define _ILP32
and __ILP32__ for x32.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@186430
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ Backported from mainline
+ 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
+ and __ILP32__ for x32.
+
2012-04-13 Tom de Vries <tom@codesourcery.com>
Backport from mainline r186418.
cpp_define (parse_in, "__amd64__");
cpp_define (parse_in, "__x86_64");
cpp_define (parse_in, "__x86_64__");
+ if (TARGET_X32)
+ {
+ cpp_define (parse_in, "_ILP32");
+ cpp_define (parse_in, "__ILP32__");
+ }
}
else
{