https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125194
Bug ID: 125194
Summary: [avr] -mno-call-main ignored with -flto
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target Milestone: ---
With -flto the option -mno-call-main has no effect.
Reason is that avr.cc uses a static variable for that information, which
doesn't survive from cc1 to lto1.
