From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8C39D3858409; Fri, 14 Apr 2023 07:32:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C39D3858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681457572; bh=5fncXc1aDJEHoOWcMB8GfMHQKA04+91uUldkSL9c/ps=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bEpfzTjBCdYCpVraO/sAkcKSmeZ3TVYGCIPiNNCBHEO2+KjNNTZCRO2mVYjJe8c/H 3/LOOsOqD4E4GHGN+rniViDiFgmWLj/k/d85NKLSvkOYZ2RVwBKY8g7ncml2wzJMXD ZwK2G9UMhh7Feh12aR+o4Flzv3xp3/F/DHxwa7ts= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109504] Compilation fails with pragma GCC target sse4.1 and immintrin.h Date: Fri, 14 Apr 2023 07:32:52 +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: 12.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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=3D109504 --- Comment #3 from Hongtao.liu --- >From pr108883, maybe we shouldnot restrict _Float16 under TARGET_SSE2. Jakub Jelinek 2023-02-22 12:21:24 UTC Created attachment 54506 [details] gcc13-pr108883.patch Untested fix on the compiler side of emit_support_tinfos. That said, these fundamental types whose presence/absence depends on ISA fl= ags are quite problematic IMHO, as they are incompatible with the target attribute/pragmas. Whether they are available or not available depends on whether in this case SSE2 is enabled during compiler initialization (aka af= ter parsing command line options) and then they are available or unavailable to everything else based on that.=