This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/8988: gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates code that segfaults
- From: caf at guarana dot org
- To: paolo at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,kevin at sylandro dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Thu, 19 Dec 2002 00:37:16 +1100
- Subject: Re: optimization/8988: gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates code that segfaults
- References: <20021218125439.5115.qmail@sources.redhat.com>
On Wed, Dec 18, 2002 at 12:54:39PM -0000, paolo@gcc.gnu.org wrote:
> Synopsis: gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates code that segfaults
>
> State-Changed-From-To: open->feedback
> State-Changed-By: paolo
> State-Changed-When: Wed Dec 18 04:54:38 2002
> State-Changed-Why:
> For some reason, the attachment got lost. Could you possibly
> provide it again?
> Thanks, Paolo.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8988
Preprocessed output attached.
By the way, the bad assembly that causes the crash is:
.L8:
leal 1(%ecx), %edx
xorl %ecx, %ecx ; %ecx is 0
.p2align 2,,3
.L7:
movl %edx, %eax
movl %edx, -28(%ebp)
leal 2(%ecx), %edx ; %edx is 2
movl %eax, %ecx
movb -1(%edx), %al ; we try to read from 0x00000001
- Kevin.