This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc miscompiles gcj @ -O2
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: gcc miscompiles gcj @ -O2
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Thu, 14 Dec 2000 21:11:58 -0800 (PST)
- Cc: gcc at gcc dot gnu dot org
- References: <3A396DDE.2157590@albatross.co.nz>
- Reply-To: apbianco at cygnus dot com
Bryce McKinlay writes:
> Then all is well. It also works fine if compiled with an older
> compiler, such as Red Hat's 2.96 or anything earlier. The diff
> between the asm output is as follows. Note how the exit_block call
> is made later in the "broken" method.
I once did the same thing turning the tree code check code off, I got
much less assembly, and I just noticed an extra stack slot allocated
for the local variable, and saw the returned value stored in the local
before the local got transfered back in the structure's field. I
didn't get a chance to single step through both version of the code.
I'll try that again if I get a chance to.
./A