]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Define __ILP32__ and _ILP32 for all 32-bit targets
authorGerald Pfeifer <gerald@pfeifer.com>
Thu, 7 May 2020 22:48:52 +0000 (00:48 +0200)
committerGerald Pfeifer <gerald@pfeifer.com>
Tue, 19 May 2020 21:50:32 +0000 (23:50 +0200)
* config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and
__ILP32__ for 32-bit targets.

gcc/ChangeLog
gcc/config/i386/i386-c.c

index 9beb81aea1ea58d13763df60f1f31bf562d04679..34eb0e873212e6085620f2ed0280a51e94ed028c 100644 (file)
@@ -1,3 +1,11 @@
+2020-05-19  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       Backport from mainline
+       2020-05-10  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and
+       __ILP32__ for 32-bit targets.
+
 2020-05-19  Tobias Burnus  <tobias@codesourcery.com>
 
        Backport from mainline
index 21ed7f4e99f8caa631abd7faa0d8c6c686543590..a4b9b786fb9a2d894224d97b0ae61b3986d00298 100644 (file)
@@ -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)