3.3 error when inlining
Michael S. Zick
mszick@goquest.com
Fri Jun 13 02:01:00 GMT 2003
On Thursday 12 June 2003 05:43 pm, Ulrich Weigand wrote:
> Michael S. Zick wrote:
> > Note that the "label" is "if (0)" out - it shouldn't exist - regardless
> > of -O?
>
> Maybe this was a bit too much reduction;
I thought that might have been an over simplification. That's why I
said something.
> the same problem persists
> if you have a non-trivial condition in the 'if' (as the original
> testcase had).
>
> Try replacing 'if (0)' with 'if (len > 10)'.
>
Using gcc-2.95.3, compiling to asm (on x86); I can confirm that:
No warnings, No errors, Compiles as expected, all -O? levels.
Mike
>
> Bye,
> Ulrich
More information about the Gcc
mailing list