From 7d0df0aeb67dbb83f7814466e866c2957be92b97 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 15 Jan 2021 18:15:26 +0100 Subject: [PATCH] i386: Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2021-01-15 Uroš Bizjak gcc/ * config/i386/i386-c.c (ix86_target_macros): Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition. --- gcc/config/i386/i386-c.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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); } -- 2.30.2