> The following code crashes when compiled with -O2. With -O it does
> not crash. Some trivial modifications make the crash go away.
Sorry, I can't repeat this one. As far as I can tell, using -O2 does three
things
- it forces -fvia-C (on by default anyway)
- it passes -O2 to gcc instead of -O
- it turns on update analysis, which is crippled
these days because it doesn't pass information
between modules. In this case, it does succeed
in making one thunk single-entry, though.
So the likely candidate would appear to be your gcc - which version do you
have installed?
Cheers,
Simon