From 13a46321516e2efd3bbb1f1899c539c6724240a9 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Fri, 8 May 2020 00:48:52 +0200 Subject: [PATCH] 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. --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386-c.c | 2 ++ 2 files changed, 7 insertions(+) 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) -- 2.30.2