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]

[Bug inline-asm/28686] ebp from clobber list used as operand



------- 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


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