public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/41164]  New: Unable to find spill register
@ 2009-08-25 14:38 lucier at math dot purdue dot edu
  2009-08-25 14:57 ` [Bug rtl-optimization/41164] " lucier at math dot purdue dot edu
  2009-08-27 17:33 ` [Bug rtl-optimization/41164] Unable to find spill register with -fschedule-insns ubizjak at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: lucier at math dot purdue dot edu @ 2009-08-25 14:38 UTC (permalink / raw)
  To: gcc-bugs

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

With this compiler:

heine:~/programs/gambc-v4_5_1-devel> /pkgs/gcc-mainline/bin/gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../../mainline/configure --enable-checking=release
--prefix=/pkgs/gcc-mainline --enable-languages=c,c++
-enable-stage1-languages=c,c++
Thread model: posix
gcc version 4.5.0 20090803 (experimental) [trunk revision 150373] (GCC) 

with this command:

heine:~/programs/gambc-v4_5_1-devel/lib> /pkgs/gcc-mainline/bin/gcc
-fschedule-insns -Wno-unused -O1 -fno-math-errno -fschedule-insns2
-fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC
-fno-common -mieee-fp -save-temps -c os_test.i


fails with this error:

os_base.c: In function ‘___os_err_code_to_string’:
os_base.c:1247:1: error: unable to find a register to spill in class ‘DREG’
os_base.c:1247:1: error: this is the insn:
(insn 264 280 266 41 os_test.i:158 (parallel [
            (set (reg:SI 37 r8 [133])
                (truncate:SI (lshiftrt:DI (mult:DI (sign_extend:DI (reg:SI 2 cx
[130]))
                            (sign_extend:DI (reg:SI 6 bp [185])))
                        (const_int 32 [0x20]))))
            (clobber (scratch:SI))
            (clobber (reg:CC 17 flags))
        ]) 347 {*smulsi3_highpart_insn} (expr_list:REG_UNUSED (reg:CC 17 flags)
        (expr_list:REG_EQUAL (truncate:SI (lshiftrt:DI (mult:DI (sign_extend:DI
(reg:SI 2 cx [130]))
                        (const_int 1717986919 [0x66666667]))
                    (const_int 32 [0x20])))
            (nil))))
os_base.c:1247: confused by earlier errors, bailing out

I'll add the .i file next.

What's interesting is that I get similar errors with

heine:~/programs/gambc-v4_5_1-devel/lib> gcc -v                                
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --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.3.3 (Ubuntu 4.3.3-5ubuntu4) 

heine:~/programs/gambc-v4_5_1-devel/lib> /pkgs/gcc-4.4-branch/bin/gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../../gcc-4.4-branch/configure --prefix=/pkgs/gcc-4.4-branch
--enable-languages=c --enable-checking=release --disable-multilib
Thread model: posix
gcc version 4.4.1 20090522 (prerelease) (GCC) 

and

heine:~/programs/gambc-v4_5_1-devel/lib> /pkgs/gcc-4.2.4/bin/gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../../gcc-4.2.4/configure --prefix=/pkgs/gcc-4.2.4
--enable-languages=c --enable-checking=release --disable-multilib
Thread model: posix
gcc version 4.2.4


-- 
           Summary: Unable to find spill register
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lucier at math dot purdue dot edu
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug rtl-optimization/41164] Unable to find spill register
  2009-08-25 14:38 [Bug rtl-optimization/41164] New: Unable to find spill register lucier at math dot purdue dot edu
@ 2009-08-25 14:57 ` lucier at math dot purdue dot edu
  2009-08-27 17:33 ` [Bug rtl-optimization/41164] Unable to find spill register with -fschedule-insns ubizjak at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: lucier at math dot purdue dot edu @ 2009-08-25 14:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from lucier at math dot purdue dot edu  2009-08-25 14:57 -------
Created an attachment (id=18423)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18423&action=view)
test file that illustrates failure


-- 


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


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

* [Bug rtl-optimization/41164] Unable to find spill register with -fschedule-insns
  2009-08-25 14:38 [Bug rtl-optimization/41164] New: Unable to find spill register lucier at math dot purdue dot edu
  2009-08-25 14:57 ` [Bug rtl-optimization/41164] " lucier at math dot purdue dot edu
@ 2009-08-27 17:33 ` ubizjak at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: ubizjak at gmail dot com @ 2009-08-27 17:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ubizjak at gmail dot com  2009-08-27 17:33 -------
Duplicate of PR24319.

*** This bug has been marked as a duplicate of 24319 ***


-- 

ubizjak at gmail dot com changed:

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


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


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

end of thread, other threads:[~2009-08-27 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-25 14:38 [Bug rtl-optimization/41164] New: Unable to find spill register lucier at math dot purdue dot edu
2009-08-25 14:57 ` [Bug rtl-optimization/41164] " lucier at math dot purdue dot edu
2009-08-27 17:33 ` [Bug rtl-optimization/41164] Unable to find spill register with -fschedule-insns ubizjak at gmail dot com

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