Re: stop IPA wrapping 'main'

2015-12-17 Thread Jan Hubicka
> gcc.dg/20031102-1.c now causes some 'surprising' optimization > behaviour. It is essentially > > int FooBar(void) > { > ... stuff > return 0; > } > > int main(void) > { > return FooBar(); > } > > > What happens is that FooBar gets inlined into main, and then > ipa-icf notices FooBar an

stop IPA wrapping 'main'

2015-12-17 Thread Nathan Sidwell
gcc.dg/20031102-1.c now causes some 'surprising' optimization behaviour. It is essentially int FooBar(void) { ... stuff return 0; } int main(void) { return FooBar(); } What happens is that FooBar gets inlined into main, and then ipa-icf notices FooBar and main have identical bodies.