gcc 2.95.2 PPC code generation bug(New version!)

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Tue May 2 04:31:00 GMT 2000


At 12:11 02.05.00, Ralph Schmidt wrote:

>You wrote: >  > Yes, that looks OK, but in fact I did quote Ralph 
>incorrectly, he wrote: >  > int result = ({ > struct test mytest; > { > 
>int testi; > testi = func (&mytest); > testi; > } > }); >  > which 
>compiles, but is no valid statement expression... >
>
>Franz...if it's no valid statement expression explain me why it works 
>99.999% of the time for ppc and 100% for 68k.
>

Optimization? Stack layout? Luck? There are a number of reasons this could 
happen if you are relying on undefined behaviour.

I think you should take the preprocessed file, format it and hunt the bug 
there (_if_ there's still one), convert it to an executable testcase and 
then resubmit it.

Franz.



More information about the Gcc-bugs mailing list