public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/22045] New: can't find a register in class 'GENERAL_REGS'
@ 2005-06-13 13:32 macro at linux-mips dot org
  2005-06-13 13:32 ` [Bug inline-asm/22045] " macro at linux-mips dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: macro at linux-mips dot org @ 2005-06-13 13:32 UTC (permalink / raw)
  To: gcc-bugs

This seems a bit different to the two other bugs in this class, so I'm filing
it separately.  For the attached code (extracted from glibc, with some
modifications), built with:

$ i386-linux-gcc md5-crypt.i -c -O2 -pipe -fPIC -fomit-frame-pointer -o md5-crypt.os

(-fomit-frame-pointer given for illustration only) GCC runs out of registers,
even though the problematic asm insists on having four registers available
only.  That means at least one free register is still available (there would
be two if alloca() didn't consume %ebp) -- how many is GCC meant to require?

 What's interesting, replacing the "=&g" constraint for "__d3" with "=m"
(a patch attached for clarity) makes the failure go away, so it looks like
it is really a wrong one.

-- 
           Summary: can't find a register in class 'GENERAL_REGS'
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: macro at linux-mips dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-linux-gnu
  GCC host triplet: i386-linux-gnu
GCC target triplet: i386-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22045


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-08-09 18:23 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-13 13:32 [Bug inline-asm/22045] New: can't find a register in class 'GENERAL_REGS' macro at linux-mips dot org
2005-06-13 13:32 ` [Bug inline-asm/22045] " macro at linux-mips dot org
2005-06-13 13:33 ` macro at linux-mips dot org
2005-06-13 13:45 ` pinskia at gcc dot gnu dot org
2005-06-13 14:14 ` macro at linux-mips dot org
2005-06-13 14:17 ` pinskia at gcc dot gnu dot org
2005-06-13 14:44 ` macro at linux-mips dot org
2005-06-14  7:06 ` vda at port dot imtp dot ilyichevsk dot odessa dot ua
2005-06-19 13:04 ` pinskia at gcc dot gnu dot org
2005-08-08 17:42 ` macro at linux-mips dot org
2005-08-08 17:43 ` macro at linux-mips dot org
2005-08-08 18:09 ` rth at gcc dot gnu dot org
2005-08-08 18:12 ` rth at gcc dot gnu dot org
2005-08-08 22:10 ` rth at gcc dot gnu dot org
2005-08-08 22:32 ` rth at gcc dot gnu dot org
2005-08-09 11:38 ` macro at linux-mips dot org
2005-08-09 17:44 ` rth at gcc dot gnu dot org
2005-08-09 18:23 ` macro at linux-mips dot org

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