diff options
author | Gerald Pfeifer <gerald@pfeifer.com> | 2020-05-08 00:48:52 +0200 |
---|---|---|
committer | Gerald Pfeifer <gerald@pfeifer.com> | 2020-05-10 23:43:04 +0200 |
commit | 13a46321516e2efd3bbb1f1899c539c6724240a9 (patch) | |
tree | 95ba17665a3439d2e1db681b0ab149ea49d1b998 /gcc/config | |
parent | 0b83c4fabb899fdbb3ae60ed75b7004b7859fae9 (diff) |
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.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386-c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index b46ebb289d2..891b2c68372 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -701,6 +701,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) |