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: releases/gcc-9.4.0~922 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5a3b1326f07616ba984199d9a916f6dc59ad597;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. (cherry picked from commit 13a46321516e2efd3bbb1f1899c539c6724240a9) --- diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index 5e7e46fcebe2..f06fea1a8a5b 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -675,6 +675,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)