This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.3 error when inlining


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]