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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13a46321516e2efd3bbb1f1899c539c6724240a9;p=gcc.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 cff8ea3f95a..b0f04132534 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-05-10 Gerald Pfeifer + + * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and + __ILP32__ for 32-bit targets. + 2020-05-09 Eric Botcazou * tree.h (expr_align): Delete. diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index b46ebb289d2..891b2c68372 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -701,6 +701,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)