diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2021-01-15 18:15:26 +0100 |
---|---|---|
committer | Uros Bizjak <ubizjak@gmail.com> | 2021-01-15 18:16:09 +0100 |
commit | 7d0df0aeb67dbb83f7814466e866c2957be92b97 (patch) | |
tree | 5c77902a785c9fa0f5d712cb4515bcaf5dba2edb | |
parent | 1ba71fabb78b18884e9f479f45a257bab50e8959 (diff) | |
download | gcc-7d0df0aeb67dbb83f7814466e866c2957be92b97.zip gcc-7d0df0aeb67dbb83f7814466e866c2957be92b97.tar.gz gcc-7d0df0aeb67dbb83f7814466e866c2957be92b97.tar.bz2 |
i386: Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition
2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
gcc/
* config/i386/i386-c.c (ix86_target_macros):
Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
-rw-r--r-- | gcc/config/i386/i386-c.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index a64d9be..ed4b098 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -757,10 +757,8 @@ ix86_target_macros (void) if (TARGET_LONG_DOUBLE_128) cpp_define (parse_in, "__LONG_DOUBLE_128__"); - if (TARGET_128BIT_LONG_DOUBLE) - cpp_define (parse_in, "__SIZEOF_FLOAT80__=16"); - else - cpp_define (parse_in, "__SIZEOF_FLOAT80__=12"); + cpp_define_formatted (parse_in, "__SIZEOF_FLOAT80__=%d", + GET_MODE_SIZE (XFmode)); cpp_define (parse_in, "__SIZEOF_FLOAT128__=16"); @@ -780,8 +778,7 @@ ix86_target_macros (void) cpp_define (parse_in, "__SEG_GS"); if (flag_cf_protection != CF_NONE) - cpp_define_formatted (parse_in, "__CET__=%d", - flag_cf_protection & ~CF_SET); + cpp_define_formatted (parse_in, "__CET__=%d", flag_cf_protection & ~CF_SET); } |