From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 2D1AB3858291; Mon, 29 Jan 2024 17:57:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D1AB3858291 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706551058; bh=WfhoqdHl96LbZjyEuCP95rvXDLfp9SDKEi5atGWXL3c=; h=From:To:Subject:Date:From; b=WVFsgp0m2JEKogJn1K/HH5uxpvqkp6wXZXPN3a/eith5DVp0OVdNnnpNsixL7TuXY 2pzCR+//Cm/5O3IKYNTVHki4+PUPxYeysyC2x6luAHS/irGXBwfWqqx3bYOJbN8MTc cQmmR6tFJb63aIuBre249xw53c8AK0dofYQf+V9s= 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] x86: math: 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: 5ae77293aac447c23bb05f703a1d7700a4f6088a X-Git-Newrev: a377c0fc309b5e85eecee0f2aca5db2e8ecab913 Message-Id: <20240129175738.2D1AB3858291@sourceware.org> Date: Mon, 29 Jan 2024 17:57:38 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a377c0fc309b5e85eecee0f2aca5db2e8ecab913 commit a377c0fc309b5e85eecee0f2aca5db2e8ecab913 Author: Adhemerval Zanella Date: Thu Mar 10 14:41:31 2022 -0300 x86: math: Avoid the use of __libgcc_cmp_return__ for __gcc_CMPtype Diff: --- sysdeps/x86/fpu/sfp-machine.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86/fpu/sfp-machine.h b/sysdeps/x86/fpu/sfp-machine.h index bc3fe332df..89a73642b1 100644 --- a/sysdeps/x86/fpu/sfp-machine.h +++ b/sysdeps/x86/fpu/sfp-machine.h @@ -1,10 +1,19 @@ /* Configure soft-fp for building sqrtf128. Based on sfp-machine.h in libgcc, with soft-float and other irrelevant parts removed. */ +#if defined __x86_64__ && defined __ILP32__ +typedef long long int __gcc_CMPtype; +#else +typedef long int __gcc_CMPtype; +#endif +#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