https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77326
Georg-Johann Lay <gjl at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |RESOLVED CC| |gjl at gcc dot gnu.org Resolution|--- |FIXED Summary|[avr] Invalid optimization |[avr] Invalid optimization |using varargs and a weak |omits comparison |function | --- Comment #5 from Georg-Johann Lay <gjl at gcc dot gnu.org> --- Fixed in 5.5 and 6.3+. Also changed the bug title because the issue has nothing to do with varargs or weak; these features just appened to be present in a test case demonstrating the problem.