https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117989
Bug ID: 117989 Summary: aarch64: FMV attaches symvers to the wrong decl Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: rsandifo at gcc dot gnu.org CC: acarlotti at gcc dot gnu.org, Alfie.Richards at arm dot com Target Milestone: --- For: int f() __attribute__((symver("f@@VERS1.0"))); __attribute__((target_version("default"))) int f() { return 1; } __attribute__((target_version("sve"))) int f() { return 2; } int g() { return f(); } aarch64 generates: .symver _Z1fv.default, f@@VERS1.0 instead of attaching the version to f itself.