public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "spark at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug inline-asm/28686] ebp from clobber list used as operand
Date: Tue, 13 Mar 2007 23:43:00 -0000	[thread overview]
Message-ID: <20070313234326.10064.qmail@sourceware.org> (raw)
In-Reply-To: <bug-28686-8905@http.gcc.gnu.org/bugzilla/>



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


      parent reply	other threads:[~2007-03-13 23:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10 19:45 [Bug inline-asm/28686] New: " Martin dot vGagern at gmx dot net
2006-08-10 19:49 ` [Bug inline-asm/28686] " Martin dot vGagern at gmx dot net
2007-01-25 11:06 ` Martin dot vGagern at gmx dot net
2007-01-30 19:09 ` ian at airs dot com
2007-01-30 20:17 ` michael dot meissner at amd dot com
2007-01-30 21:43 ` spark at gcc dot gnu dot org
2007-01-31  0:28 ` spark at gcc dot gnu dot org
2007-02-01 17:47 ` spark at gcc dot gnu dot org
2007-02-01 23:15 ` spark at gcc dot gnu dot org
2007-02-06 19:44 ` spark at gcc dot gnu dot org
2007-03-13 23:43 ` spark at gcc dot gnu dot org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070313234326.10064.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).