https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101892
Bug ID: 101892 Summary: -fzero-call-used-regs does not work for sibling-calls Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- While looking into PR 101891, I Noticed this. Take: int g(int); int f1(int y) { const bool x = y % 100 == 0; return g(y % (x ? 16 : 4) == 0); } -------------------------------- Without -fno-optimize-sibling-calls, -fzero-call-used-regs=all does nothing.