[gcc(refs/vendors/ARM/heads/arm-perf-staging)] i386: Define __ILP32__ and _ILP32 for all 32-bit targets
Tamar Christina
tnfchris@gcc.gnu.org
Fri Jul 17 15:14:07 GMT 2020
https://gcc.gnu.org/g:5ca86398aebbbd4d17787ac364c3da1febc3551f
commit 5ca86398aebbbd4d17787ac364c3da1febc3551f
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.
Diff:
---
gcc/ChangeLog | 8 ++++++++
gcc/config/i386/i386-c.c | 2 ++
2 files changed, 10 insertions(+)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9beb81aea1e..34eb0e87321 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c
index 21ed7f4e99f..a4b9b786fb9 100644
--- a/gcc/config/i386/i386-c.c
+++ b/gcc/config/i386/i386-c.c
@@ -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)
More information about the Gcc-cvs
mailing list