[Bug target/77326] [avr] Invalid optimization omits comparison

2016-09-21 Thread matthijs at stdin dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77326

--- Comment #6 from Matthijs Kooijman  ---
Thanks!

[Bug target/77326] [avr] Invalid optimization omits comparison

2016-09-21 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77326

Georg-Johann Lay  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  ---
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.