From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7479C3858403; Mon, 21 Mar 2022 14:52:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7479C3858403 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105000] New: __attribute__((target("no-sse"))) doesn't disable AVX/SSE ISAs in ix86_isa_flags2 Date: Mon, 21 Mar 2022 14:52:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2022 14:52:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105000 Bug ID: 105000 Summary: __attribute__((target("no-sse"))) doesn't disable AVX/SSE ISAs in ix86_isa_flags2 Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: crazylht at gmail dot com Target Milestone: --- Target: x86-64 [hjl@gnu-tgl-3 gcc]$ cat /tmp/x.c=20 #include __attribute__((target("no-mmx,no-sse"))) int foo () { return _get_ssp (); } [hjl@gnu-tgl-3 gcc]$ ./xgcc -B./ -S -O2 x.c -mshstk -mavxvnni=20 x.c: In function =E2=80=98foo=E2=80=99: x.c:5:1: error: inlining failed in call to =E2=80=98always_inline=E2=80=99 = =E2=80=98_get_ssp=E2=80=99: target specific option mismatch 5 | _get_ssp (void) | ^~~~~~~~ x.c:15:10: note: called from here 15 | return _get_ssp (); | ^~~~~~~~~~~ [hjl@gnu-tgl-3 gcc]$ ./xgcc -B./ -S -O2 x.c -mshstk -mkl x.c: In function =E2=80=98foo=E2=80=99: x.c:5:1: error: inlining failed in call to =E2=80=98always_inline=E2=80=99 = =E2=80=98_get_ssp=E2=80=99: target specific option mismatch 5 | _get_ssp (void) | ^~~~~~~~ x.c:15:10: note: called from here 15 | return _get_ssp (); | ^~~~~~~~~~~ [hjl@gnu-tgl-3 gcc]$=20 Is is because __attribute__((target("no-sse"))) doesn't disable AVX/SSE ISAs in ix86_isa_flags2.=