[Bug other/60486] [avr] missed optimization on detecting zero flag set

2014-03-11 Thread darryl.piper at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60486 --- Comment #4 from Darryl Piper darryl.piper at gmail dot com --- details also posted on avrfreaks.net http://www.avrfreaks.net/index.php?name=PNphpBB2file=viewtopicp=1143389 the bug has existed since the code base copy from 4.7.2 to create

[Bug other/60486] [avr] missed optimization on detecting zero flag set

2014-03-11 Thread darryl.piper at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60486 Darryl Piper darryl.piper at gmail dot com changed: What|Removed |Added Severity|normal |major

[Bug other/60486] [avr] missed optimization on detecting zero flag set

2014-03-10 Thread gjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60486 Georg-Johann Lay gjl at gcc dot gnu.org changed: What|Removed |Added CC||gjl at gcc dot

[Bug other/60486] [avr] missed optimization on detecting zero flag set

2014-03-10 Thread gjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60486 Georg-Johann Lay gjl at gcc dot gnu.org changed: What|Removed |Added Target||avr

[Bug other/60486] [avr] missed optimization on detecting zero flag set

2014-03-10 Thread gjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60486 --- Comment #3 from Georg-Johann Lay gjl at gcc dot gnu.org --- Here is a smaller test case with similar artifact (insn #7): extern void foo (unsigned); char v; void pr_60486 (unsigned z) { if (--z == 0) v = 0; foo (z); } pr_60486: