This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.3 error when inlining
- From: Michael S. Zick <mszick at goquest dot com>
- To: Ulrich Weigand <weigand at immd1 dot informatik dot uni-erlangen dot de>,mszick at goquest dot com (Michael S. Zick)
- Cc: weigand at immd1 dot informatik dot uni-erlangen dot de (Ulrich Weigand),gcc at gcc dot gnu dot org
- Date: Thu, 12 Jun 2003 20:25:33 -0500
- Subject: Re: 3.3 error when inlining
- References: <200306122243.AAA23422@faui11.informatik.uni-erlangen.de>
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