From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 856643858C98; Sat, 3 Aug 2024 18:43:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 856643858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1722710597; bh=Ne8R1EDgtNGlW2sYyVTcwsg5hcxz8e99URPUwQ6kDz8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mj4Y24ifnHKbovhNYeewRKmRfgipWK3oLyqfxYBOfNsuZvM1PCeneW9uHlAajwg7W vsNRKeU0HT8tgKTq4IxQJHln+Vv1+rIBnNGltvykUXJ4qokdyNSXhTQx96Ppv3nz0s E4sC6RqOCHfxsFyx3sdLgBe3gl5vvRYO0quRRku0= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/116007] libquadmath fails to build with libgcc/soft-fp/quad.h:69:1: error: unable to emulate 'TF' Date: Sat, 03 Aug 2024 18:43:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.1.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D116007 --- Comment #19 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:3ac02e67503ccffa3dfeeffc0a60fce6bdaca43b commit r15-2708-g3ac02e67503ccffa3dfeeffc0a60fce6bdaca43b Author: Jakub Jelinek Date: Sat Aug 3 20:37:54 2024 +0200 libquadmath: Fix up libquadmath/math/sqrtq.c compilation in some powerp= c* configurations [PR116007] My PR114623 change started using soft-fp.h and quad.h for the sqrtq implementation. Unfortunately, that seems to fail building in some powerpc* configurati= ons, where TFmode isn't available. quad.h has: #ifndef TFtype typedef float TFtype __attribute__ ((mode (TF))); #endif and uses TFtype. quad.h has: /* Define the complex type corresponding to __float128 ("_Complex __float128" is not allowed) */ #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__) typedef _Complex float __attribute__((mode(TC))) __complex128; #else typedef _Complex float __attribute__((mode(KC))) __complex128; #endif with the conditional and KCmode use added during porting of libquadmath to powerpc*, so I've just defined TFtype for powerpc when __LONG_DOUBLE_IEEE128__ isn't defined; I could define it to float __attribute__ ((mode (KF))) b= ut it seemed easier to just define it to __float128 which should do the same thing. 2024-08-03 Jakub Jelinek PR target/116007 * math/sqrtq.c (TFtype): For PowerPC without __LONG_DOUBLE_IEEE128__ define to __float128 before including soft-fp.h and quad.h.=