This is the mail archive of the gcc-bugs@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: optimization/8988: gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates code that segfaults


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.



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