public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16185] New: qemu 0.5.5 fails to compile with -march={i686,pentium4,athlon}
@ 2004-06-24 21:24 herton at brturbo dot com
  2004-12-27  3:32 ` [Bug target/16185] ICE: in spill_failure, at reload1.c:1892, global registers and long long pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: herton at brturbo dot com @ 2004-06-24 21:24 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2740 bytes --]

When compiling qemu 0.5.5 (http://fabrice.bellard.free.fr/qemu/), the following
error occurs:

gcc -O2 -frename-registers -fomit-frame-pointer -march=i686 -fomit-frame-pointer
-I. -I/tmp/qemu/BUILD/qemu-0.5.5/target-i386 -I/tmp/qemu/BUILD/qemu-0.5.5
-D_GNU_SOURCE -c -o translate.o /tmp/qemu/BUILD/qemu-0.5.5/target-i386/translate.c
gcc -O2 -frename-registers -fomit-frame-pointer -march=i686 -I.
-I/tmp/qemu/BUILD/qemu-0.5.5/target-i386 -I/tmp/qemu/BUILD/qemu-0.5.5
-D_GNU_SOURCE -c -o helper.o /tmp/qemu/BUILD/qemu-0.5.5/target-i386/helper.c
In file included from /tmp/qemu/BUILD/qemu-0.5.5/target-i386/helper.c:2492:
/tmp/qemu/BUILD/qemu-0.5.5/softmmu_template.h: In function `slow_ldq_mmu':
/tmp/qemu/BUILD/qemu-0.5.5/softmmu_template.h:179: error: unable to find a
register to spill in class `GENERAL_REGS'
/tmp/qemu/BUILD/qemu-0.5.5/softmmu_template.h:179: error: this is the insn:
(insn:HI 167 164 168 6 0x407a0ec8 (parallel [
            (set (reg:DI 112)
                (lshiftrt:DI (reg/v:DI 63)
                    (subreg:QI (reg:SI 111) 0)))
            (clobber (scratch:SI))
            (clobber (reg:CC 17 flags))
        ]) 320 {lshrdi3_1} (insn_list 136 (insn_list 164 (nil)))
    (expr_list:REG_DEAD (reg/v:DI 63)
        (expr_list:REG_UNUSED (scratch:SI)
            (expr_list:REG_UNUSED (reg:CC 17 flags)
                (nil)))))
/tmp/qemu/BUILD/qemu-0.5.5/softmmu_template.h:179: confused by earlier errors,
bailing out
make[1]: ** [helper.o] Erro 1
make[1]: Leaving directory `/tmp/qemu/BUILD/qemu-0.5.5/i386'
make: ** [all] Erro 1
erro: Status de saída ruim em /tmp/qemu/BUILDROOT/rpm-tmp.6894 (%build)

As the log shows, I used the flags "-O2 -frename-registers -fomit-frame-pointer
-march=i686". Interestingly, the problem above doesn't occurs when I specify
-march={i386,i486,i586}, I only have an error when using i686/athlon/pentium4 (I
didn't test all combinations, probably other options greater than i686 are also
affected). To compile qemu with different flags, you must edit Makefile and
Makefile.target from qemu sources, using for example sed:

sed -i "s/CFLAGS=.*/CFLAGS=-O2 -frename-registers -fomit-frame-pointer
-march=i686/" Makefile{,.target}

-- 
           Summary: qemu 0.5.5 fails to compile with -
                    march={i686,pentium4,athlon}
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: herton at brturbo dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-conectiva-linux
GCC target triplet: i386-conectiva-linux


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


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

end of thread, other threads:[~2009-09-17 12:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16185-8799@http.gcc.gnu.org/bugzilla/>
2005-10-10  0:22 ` [Bug target/16185] ICE: in spill_failure, at reload1.c:1892, global registers and long long pinskia at gcc dot gnu dot org
2005-11-28  5:21 ` pinskia at gcc dot gnu dot org
2006-02-24  9:46 ` rmathew at gcc dot gnu dot org
2006-05-04 17:43 ` pinskia at gcc dot gnu dot org
2006-06-08 23:25 ` pinskia at gcc dot gnu dot org
2007-05-27 19:51 ` belyshev at depni dot sinp dot msu dot ru
2009-03-12 17:49 ` ubizjak at gmail dot com
2009-09-17 12:13 ` ubizjak at gmail dot com
2004-06-24 21:24 [Bug c/16185] New: qemu 0.5.5 fails to compile with -march={i686,pentium4,athlon} herton at brturbo dot com
2004-12-27  3:32 ` [Bug target/16185] ICE: in spill_failure, at reload1.c:1892, global registers and long long pinskia at gcc dot gnu dot org
2005-01-11 16:28 ` belyshev at depni dot sinp dot msu dot ru
2005-05-09 20:28 ` belyshev at depni dot sinp dot msu dot ru
2005-06-15 17:28 ` belyshev at depni dot sinp dot msu dot ru
2005-06-26 12:26 ` steven at gcc dot gnu 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).