From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 4971D3858417; Fri, 9 Feb 2024 17:32:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4971D3858417 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707499935; bh=CECwHVnHjE54o4pn6cWaNMqt4hh6EhlFyuRKMgk29Ms=; h=From:To:Subject:Date:From; b=r+pc6z3sA6ljs9latJTuyEM8P+fkVlNROpqxjxdW63QJ7Su6jYEtQY830O2wMFfaI sRRreGS+56KLEOr+mTrF+hy5zBXmLJdEvtaPWb8HUIixDmhvaF0WC4W3pkw6V0JUEd CNhg1PjKFh+lEnr3UMztFKyMoqA0Ga06ue9cYj5s= 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] i386: Disable math_opt_barrier and math_force_eval for clang X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 94126cc2707c9e7b71a77b9ab0dfa5e5b77fa5ac X-Git-Newrev: 0c16775b5cedca6205a28148fa6f2a111ae499c6 Message-Id: <20240209173215.4971D3858417@sourceware.org> Date: Fri, 9 Feb 2024 17:32:15 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0c16775b5cedca6205a28148fa6f2a111ae499c6 commit 0c16775b5cedca6205a28148fa6f2a111ae499c6 Author: Adhemerval Zanella Date: Tue Jul 26 08:45:02 2022 -0300 i386: Disable math_opt_barrier and math_force_eval for clang It triggers an ICE with clang while building round_and_return. Diff: --- sysdeps/x86/fpu/math-barriers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/x86/fpu/math-barriers.h b/sysdeps/x86/fpu/math-barriers.h index 6fdcdac280..59577b77ea 100644 --- a/sysdeps/x86/fpu/math-barriers.h +++ b/sysdeps/x86/fpu/math-barriers.h @@ -19,7 +19,7 @@ #ifndef X86_MATH_BARRIERS_H #define X86_MATH_BARRIERS_H 1 -#ifdef __SSE2_MATH__ +#if defined __SSE2_MATH__ && !defined (__clang__) # define math_opt_barrier(x) \ ({ __typeof(x) __x; \ if (sizeof (x) <= sizeof (double) \