From: H.J. Lu Date: Fri, 13 Apr 2012 18:20:10 +0000 (+0000) Subject: Define _ILP32 and __ILP32__ for x32 X-Git-Tag: misc/gccgo-go1_1_2~3506 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6573c644e83d576fd16847d5c21a26c2f0500921;p=thirdparty%2Fgcc.git Define _ILP32 and __ILP32__ for x32 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and __ILP32__ for x32. From-SVN: r186429 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e04d1be979ce..bf62906e30cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-04-13 H.J. Lu + + * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 + and __ILP32__ for x32. + 2012-04-13 Martin Jambor PR middle-end/52939 diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index 8adb3b46dfaf..49fd4d92ca88 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -383,6 +383,11 @@ ix86_target_macros (void) 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 {