https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115713
Bug ID: 115713 Summary: rs6000: Miss warning for incompatible no-altivec and vsx in target attribute Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: linkw at gcc dot gnu.org Target Milestone: --- As Peter found in the PR115688, there isn't a warning for: long __attribute__ ((target ("no-altivec,vsx"))) foo (void) { return 0; } It's expected to see warning like: warning: ‘-mvsx’ and ‘-mno-altivec’ are incompatible