From: Uros Bizjak Date: Fri, 15 Jan 2021 17:15:26 +0000 (+0100) Subject: i386: Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d0df0aeb67dbb83f7814466e866c2957be92b97;p=gcc.git i386: Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition 2021-01-15 Uroš Bizjak gcc/ * config/i386/i386-c.c (ix86_target_macros): Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition. --- 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); }