public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45409]  New: ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG'
@ 2010-08-26  3:34 tbptbp at gmail dot com
  2010-08-26  3:35 ` [Bug c++/45409] " tbptbp at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tbptbp at gmail dot com @ 2010-08-26  3:34 UTC (permalink / raw)
  To: gcc-bugs

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

I have a project where g++ crashes on most files whenever -fschedule-insns is
mentioned; i've attached one such file.

$ g++ -O1 -std=c++0x -fschedule-insns drv.ii -c
src.core/driver.cc: In member function ‘ui::events::flags_and_signals_t
ui::<unnamed>::window_private_t::process(ui::events::fixed_queue_t&, bool)’:
src.core/driver.cc:1078: error: unable to find a register to spill in class
‘CREG’
src.core/driver.cc:1078: error: this is the insn:
(insn 339 462 335 31 src.core/driver.cc:955 (parallel [
            (set (reg:DI 6 bp [237])
                (ashift:DI (reg:DI 6 bp [238])
                    (subreg:QI (reg:SI 1 dx [230]) 0)))
            (clobber (reg:CC 17 flags))
        ]) 490 {*ashldi3_1_rex64} (expr_list:REG_DEAD (reg:DI 6 bp [238])
        (expr_list:REG_DEAD (reg:SI 1 dx [230])
            (expr_list:REG_UNUSED (reg:CC 17 flags)
                (nil)))))
src.core/driver.cc:1078: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/ccsQpKys.out file, please attach this to
your bugreport.
$ g++ -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc
--disable-werror --with-arch-32=i486 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 

also happens on another machine with
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.4-8'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--with-arch-32=i586 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.5 20100728 (prerelease) (Debian 4.4.4-8)


-- 
           Summary: ICE, g++ 4.4.x, -fschedule-insns, unable to find a
                    register to spill in class '*REG'
           Product: gcc
           Version: 4.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbptbp at gmail dot com
  GCC host triplet: x86-64, linux


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


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

* [Bug c++/45409] ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG'
  2010-08-26  3:34 [Bug c++/45409] New: ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG' tbptbp at gmail dot com
@ 2010-08-26  3:35 ` tbptbp at gmail dot com
  2010-08-26  3:43 ` tbptbp at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tbptbp at gmail dot com @ 2010-08-26  3:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tbptbp at gmail dot com  2010-08-26 03:35 -------
Created an attachment (id=21568)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21568&action=view)
one of the offender


-- 


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


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

* [Bug c++/45409] ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG'
  2010-08-26  3:34 [Bug c++/45409] New: ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG' tbptbp at gmail dot com
  2010-08-26  3:35 ` [Bug c++/45409] " tbptbp at gmail dot com
@ 2010-08-26  3:43 ` tbptbp at gmail dot com
  2010-08-26  3:44 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tbptbp at gmail dot com @ 2010-08-26  3:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tbptbp at gmail dot com  2010-08-26 03:43 -------
Forgot to say g++ 4.5 and 4.6 are immune.


-- 


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


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

* [Bug c++/45409] ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG'
  2010-08-26  3:34 [Bug c++/45409] New: ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG' tbptbp at gmail dot com
  2010-08-26  3:35 ` [Bug c++/45409] " tbptbp at gmail dot com
  2010-08-26  3:43 ` tbptbp at gmail dot com
@ 2010-08-26  3:44 ` pinskia at gcc dot gnu dot org
  2010-08-26  3:53 ` tbptbp at gmail dot com
  2010-08-26  7:14 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-08-26  3:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2010-08-26 03:44 -------
See PR 42535.


-- 


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


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

* [Bug c++/45409] ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG'
  2010-08-26  3:34 [Bug c++/45409] New: ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG' tbptbp at gmail dot com
                   ` (2 preceding siblings ...)
  2010-08-26  3:44 ` pinskia at gcc dot gnu dot org
@ 2010-08-26  3:53 ` tbptbp at gmail dot com
  2010-08-26  7:14 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tbptbp at gmail dot com @ 2010-08-26  3:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tbptbp at gmail dot com  2010-08-26 03:52 -------
Subject: Re:  ICE, g++ 4.4.x, -fschedule-insns, unable to find
 a register to spill in class '*REG'

Case closed then.
Not that it matters much, i don't even remember why -fschedule-insns
got there to begin with, but if it's in such terrible shape at least
the documentation could hint about it. Just a thought.


-- 


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


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

* [Bug c++/45409] ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG'
  2010-08-26  3:34 [Bug c++/45409] New: ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG' tbptbp at gmail dot com
                   ` (3 preceding siblings ...)
  2010-08-26  3:53 ` tbptbp at gmail dot com
@ 2010-08-26  7:14 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-08-26  7:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2010-08-26 07:14 -------
It isn't in terrible shape on many targets, it is only on targets with very
small amount of registers where -fschedule-insns didn't in 4.4 and earlier
(since forever) work reliably and wasn't enabled by default either for those
targets.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX


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


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

end of thread, other threads:[~2010-08-26  7:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-26  3:34 [Bug c++/45409] New: ICE, g++ 4.4.x, -fschedule-insns, unable to find a register to spill in class '*REG' tbptbp at gmail dot com
2010-08-26  3:35 ` [Bug c++/45409] " tbptbp at gmail dot com
2010-08-26  3:43 ` tbptbp at gmail dot com
2010-08-26  3:44 ` pinskia at gcc dot gnu dot org
2010-08-26  3:53 ` tbptbp at gmail dot com
2010-08-26  7:14 ` jakub 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).