]> 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>
Sun, 31 May 2020 00:30:30 +0000 (02:30 +0200)
* config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and
__ILP32__ for 32-bit targets.

(cherry picked from commit 13a46321516e2efd3bbb1f1899c539c6724240a9)

gcc/config/i386/i386-c.c

index 5e7e46fcebe2de61077f0ad1de20b8ffd617e750..f06fea1a8a5bfe2bd7b8461217b76a8e262021ba 100644 (file)
@@ -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)