public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/53735] New: thumb1 spill failure with -Os
@ 2012-06-20 18:56 aldot at gcc dot gnu.org
  2012-06-20 18:58 ` [Bug target/53735] " aldot at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: aldot at gcc dot gnu.org @ 2012-06-20 18:56 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53735
           Summary: thumb1 spill failure with -Os
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Keywords: assemble-failure, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: aldot@gcc.gnu.org
                CC: ramana@gcc.gnu.org, rearnsha@gcc.gnu.org
            Target: arm-eabi


Created attachment 27667
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27667
original source

fork() fails to assemble with -mthumb -Os, works with -O2 instead of -Os.

arm-oe-linux-uclibceabi-gcc -S fork.i -o fork.s -mthumb -Os ;# -g
-march=armv5te -mthumb-interwork -mtune=arm926ej-s -msoft-float -mlittle-endian
-feliminate-unused-debug-types -fno-tree-loop-optimize -fno-tree-dominator-opts 
fork.i: In function 'fork':
fork.i:8762:1: error: unable to find a register to spill in class 'LO_REGS'
fork.i:8762:1: error: this is the insn:
(insn 99 97 100 17 (set (reg/v:SI 4 r4 [ _v1 ])
        (plus:SI (reg/f:SI 147 [ D.8653 ])
            (const_int -1064 [0xfffffffffffffbd8])))
fork.i:8727 5 {*thumb1_addsi3}
     (nil))
fork.i:8762: confused by earlier errors, bailing out


Attached fork.i is the original, fork-reduced.i is a slightly reduced variant.
Above my original flags commented out for reference.


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

end of thread, other threads:[~2013-08-05 21:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-20 18:56 [Bug target/53735] New: thumb1 spill failure with -Os aldot at gcc dot gnu.org
2012-06-20 18:58 ` [Bug target/53735] " aldot at gcc dot gnu.org
2012-07-17  9:34 ` ramana at gcc dot gnu.org
2012-07-24  9:04 ` zhuolin.liu at arm dot com
2012-07-26  7:51 ` zhenqiang.chen at linaro dot org
2013-08-05 21:34 ` rearnsha at gcc dot gnu.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).