[gcc(refs/vendors/ibm/heads/gcc-9-branch)] i386: Define __ILP32__ and _ILP32 for all 32-bit targets
Peter Bergner
bergner@gcc.gnu.org
Fri Sep 4 19:14:55 GMT 2020
https://gcc.gnu.org/g:a5a3b1326f07616ba984199d9a916f6dc59ad597
commit a5a3b1326f07616ba984199d9a916f6dc59ad597
Author: Gerald Pfeifer <gerald@pfeifer.com>
Date: Fri May 8 00:48:52 2020 +0200
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:
---
gcc/config/i386/i386-c.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c
index 5e7e46fcebe..f06fea1a8a5 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)
More information about the Gcc-cvs
mailing list