> 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
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.