From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 12B3D3858D3C; Tue, 28 Feb 2023 09:41:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12B3D3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677577260; bh=Ax+S5alCWIObAuBzGWOdTaRoIkRAEtJFP6PSXny+NpY=; h=From:To:Subject:Date:From; b=O1V+RmHRX42qZKM/8thx82R96fu01cuUU5CahdcWorjGzC/Lf6MI0opnTwvMHg44P ceB0GYxAN3beEYtijzkpE8DMyeqrnY1gUXS3cNUZ582e09aJvRNdtq9N5HR3/cR8nl 44WKbSNF3tGj/fAluXkdgc/kpA+2iGjSakpzgQ3s= From: "rouca at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108964] New: Attribute target should be implemented for C backend (not only c++) Date: Tue, 28 Feb 2023 09:40:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rouca at debian dot org 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 target_milestone 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108964 Bug ID: 108964 Summary: Attribute target should be implemented for C backend (not only c++) Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rouca at debian dot org Target Milestone: --- Hi, The following program fail to compile with gcc but compile with g++ On the debian side we will like to have it see https://wiki.debian.org/InstructionSelection __attribute__((target("default"))) int test_fn() { return 1; } __attribute__((target("sse2"))) int test_fn() { return 0; } int main() { return test_fn(); } Bastien (rouca for debian)=