------- Comment #2 from aldot at gcc dot gnu dot org 2007-12-14 11:05 ------- Confirmed. gcc-2.95.4 works as expected:
$ gcc-2.95 -Os -fomit-frame-pointer pr29978.i -S -o - .file "pr29978.i" .version "01.01" gcc2_compiled.: .text .align 16 .globl f .type f,@function f: subl $12,%esp cmpl $15,20(%esp) jle .L3 call g .L3: call g addl $12,%esp ret .Lfe1: .size f,.Lfe1-f .ident "GCC: (GNU) 2.95.4 20011002 (Debian prerelease)" -- aldot at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aldot at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |missed-optimization Known to fail| |3.3 3.4.6 4.0.4 4.1.3 4.2.2 Known to work| |2.95.4 Last reconfirmed|0000-00-00 00:00:00 |2007-12-14 11:05:43 date| | Summary|suboptimal code generation |[4.0/4.1/4.2/4.3 Regression] | |redundant jumps http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29978