This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/6806: gcc 3.0.4 ignoring clobbered registers in inline asm with -O1 or higher on i386
- From: rth at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, michaelni at gmx dot at, nobody at gcc dot gnu dot org
- Date: 28 May 2002 17:07:25 -0000
- Subject: Re: optimization/6806: gcc 3.0.4 ignoring clobbered registers in inline asm with -O1 or higher on i386
- Reply-to: rth at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, michaelni at gmx dot at, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: gcc 3.0.4 ignoring clobbered registers in inline asm with -O1 or higher on i386
State-Changed-From-To: open->analyzed
State-Changed-By: rth
State-Changed-When: Tue May 28 10:07:23 2002
State-Changed-Why:
Confirmed still present in 3.1.0 compiling with -O1.
Appears to be some sort of reload inheritence problem, since
we have
movl f, %eax
movl %eax, -40(%ebp)
...
addl %eax, %edx
#NO_APP
I.e. F got copied to the stack as expected for a "g" input
with not enough registers, but then we used eax in the asm
anyway.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6806