2021-01-15 Uroš Bizjak <ubiz...@gmail.com> gcc/ * config/i386/i386-c.c (ix86_target_macros): Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}. Pushed to mainline. Uros.
diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index a64d9be6106..ed4b098c810 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); }