https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108964
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)