From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id DED5A3857816; Fri, 11 Mar 2022 17:24:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DED5A3857816 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] math: x86: Avoid the use of __libgcc_cmp_return__ for __gcc_CMPtype X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: cebf88e830f17561aace3bfcb3fd3e48cb5273f4 X-Git-Newrev: 1b8c3d0cf1639a9443a13c66d0bbb27e9213f268 Message-Id: <20220311172422.DED5A3857816@sourceware.org> Date: Fri, 11 Mar 2022 17:24:22 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2022 17:24:23 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1b8c3d0cf1639a9443a13c66d0bbb27e9213f268 commit 1b8c3d0cf1639a9443a13c66d0bbb27e9213f268 Author: Adhemerval Zanella Date: Thu Mar 10 14:41:31 2022 -0300 math: x86: Avoid the use of __libgcc_cmp_return__ for __gcc_CMPtype Diff: --- sysdeps/x86/fpu/sfp-machine.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86/fpu/sfp-machine.h b/sysdeps/x86/fpu/sfp-machine.h index 5892f4f5fe..9e923c21dc 100644 --- a/sysdeps/x86/fpu/sfp-machine.h +++ b/sysdeps/x86/fpu/sfp-machine.h @@ -1,10 +1,15 @@ /* Configure soft-fp for building sqrtf128. Based on sfp-machine.h in libgcc, with soft-float and other irrelevant parts removed. */ +typedef long __gcc_CMPtype; +#if !defined(__clang__) && defined(__GNUC__) /* The type of the result of a floating point comparison. This must match `__libgcc_cmp_return__' in GCC for the target. */ -typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__))); -#define CMPtype __gcc_CMPtype +typedef int __gcc_CMPtype_GCC __attribute__ ((mode (__libgcc_cmp_return__))); +# define CMPtype __gcc_CMPtype +_Static_assert(sizeof(__gcc_CMPtype) == sizeof(__gcc_CMPtype_GCC), + "sizeof(__gcc_CMPtype) != sizeof(__gcc_CMPtype_GCC)"); +#endif #ifdef __x86_64__ # define _FP_W_TYPE_SIZE 64