This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/28686] ebp from clobber list used as operand
- From: "spark at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Mar 2007 23:43:26 -0000
- Subject: [Bug inline-asm/28686] ebp from clobber list used as operand
- References: <bug-28686-8905@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from spark at gcc dot gnu dot org 2007-03-13 23:43 -------
I believe all issues are fixed at this point,
except for the extra error message of "can't find a register".
But since it's accompanied with a proper error message,
I don't think this is a problem anymore.
$gcc -fPIC -fomit-frame-pointer -O2 -S t.c && grep DEBUG t.s
#DEBUG %0=(%esp), clobber: %ebp, ...
$gcc -DNBEFORE=1 -fPIC -fomit-frame-pointer -O2 -S t.c && grep DEBUG t.s
#DEBUG %0=(%esp), clobber: %ebp, ...
$gcc -O1 -S t.c $@ && grep DEBUG t.s
t.c: In function 'test_function':
t.c:15: error: can't find a register in class 'GENERAL_REGS' while reloading
'asm'
t.c:15: error: 'asm' operand has impossible constraints
$gcc -O1 -fPIC -S t.c $@ && grep DEBUG t.s
t.c: In function 'test_function':
t.c:20: error: bp cannot be used in asm here
t.c:15: error: can't find a register in class 'GENERAL_REGS' while reloading
'asm'
t.c:15: error: 'asm' operand has impossible constraints
$gcc -fPIC -O0 -S t.c && grep DEBUG t.s
t.c: In function 'test_function':
t.c:20: error: bp cannot be used in asm here
$gcc -fPIC -O0 -S t.c -fomit-frame-pointer && grep DEBUG
t.s
#DEBUG %0=12(%esp), clobber: %ebp, ...
--
spark at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28686