From: Gerald Pfeifer Date: Thu, 7 May 2020 22:48:52 +0000 (+0200) Subject: i386: Define __ILP32__ and _ILP32 for all 32-bit targets X-Git-Tag: misc/first-auto-changelog-10~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ca86398aebbbd4d17787ac364c3da1febc3551f;p=thirdparty%2Fgcc.git i386: Define __ILP32__ and _ILP32 for all 32-bit targets * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and __ILP32__ for 32-bit targets. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9beb81aea1ea..34eb0e873212 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2020-05-19 Gerald Pfeifer + + Backport from mainline + 2020-05-10 Gerald Pfeifer + + * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and + __ILP32__ for 32-bit targets. + 2020-05-19 Tobias Burnus Backport from mainline diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index 21ed7f4e99f8..a4b9b786fb9a 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -697,6 +697,8 @@ ix86_target_macros (void) cpp_assert (parse_in, "cpu=i386"); cpp_assert (parse_in, "machine=i386"); builtin_define_std ("i386"); + cpp_define (parse_in, "_ILP32"); + cpp_define (parse_in, "__ILP32__"); } if (!TARGET_80387)