public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/54490] New: ICE: Spill failure in newlib build
@ 2012-09-05 11:52 gjl at gcc dot gnu.org
  2012-09-05 11:55 ` [Bug other/54490] [4.7 Regression] " gjl at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-09-05 11:52 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54490
           Summary: ICE: Spill failure in newlib build
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, ra
          Severity: major
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gjl@gcc.gnu.org
            Target: avr


../../gcc.gnu.org/gcc-4_7-branch/configure --target=avr
--prefix=/local/gnu/install/gcc-4.7 --disable-nls --with-dwarf2
--enable-languages=c,c++ --enable-target-optspace=yes --enable-checking=rtl,yes

For this configure, the build aborts with a spill fail ICE if newlib is in the
source path.  SVN is from today's (2012-09-05) gcc-4_7-branch 


/home/georg/gnu/build/gcc-4.7-avr/./gcc/xgcc
-B/home/georg/gnu/build/gcc-4.7-avr/./gcc/ -nostdinc
-B/home/georg/gnu/build/gcc-4.7-avr/avr/avr25/newlib/ -isystem
/home/georg/gnu/build/gcc-4.7-avr/avr/avr25/newlib/targ-include -isystem
/home/georg/gnu/gcc.gnu.org/gcc-4_7-branch/newlib/libc/include
-B/home/georg/gnu/build/gcc-4.7-avr/avr/avr25/libgloss/avr
-L/home/georg/gnu/build/gcc-4.7-avr/avr/avr25/libgloss/libnosys
-L/home/georg/gnu/gcc.gnu.org/gcc-4_7-branch/libgloss/avr
-B/local/gnu/install/gcc-4.7/avr/bin/ -B/local/gnu/install/gcc-4.7/avr/lib/
-isystem /local/gnu/install/gcc-4.7/avr/include -isystem
/local/gnu/install/gcc-4.7/avr/sys-include  -mmcu=avr25
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"1.18.0\" -DPACKAGE_STRING=\"newlib\ 1.18.0\"
-DPACKAGE_BUGREPORT=\"\" -I.
-I../../../../../../../gcc.gnu.org/gcc-4_7-branch/newlib/libc/stdlib -Os
-DPREFER_SIZE_OVER_SPEED -mcall-prologues -DNO_EXEC -DSMALL_MEMORY
-DMISSING_SYSCALL_NAMES -fno-builtin      -g -Os  -mmcu=avr25 -c -o
lib_a-mprec.o `test -f 'mprec.c' || echo
'../../../../../../../gcc.gnu.org/gcc-4_7-branch/newlib/libc/stdlib/'`mprec.c
../../../../../../../gcc.gnu.org/gcc-4_7-branch/newlib/libc/stdlib/mprec.c: In
function '__multiply':
../../../../../../../gcc.gnu.org/gcc-4_7-branch/newlib/libc/stdlib/mprec.c:419:1:
error: unable to find a register to spill in class 'POINTER_REGS'
../../../../../../../gcc.gnu.org/gcc-4_7-branch/newlib/libc/stdlib/mprec.c:419:1:
error: this is the insn:
(insn 98 97 101 12 (set (reg:SI 75 [ D.2858 ])
        (mem:SI (post_inc:HI (reg:HI 16 r16 [orig:50 ivtmp.180 ] [50])) [16
MEM[base: D.3213_188, offset: 0B]+0 S4 A8]))
../../../../../../../gcc.gnu.org/gcc-4_7-branch/newlib/libc/stdlib/mprec.c:370
36 {*movsi}
     (expr_list:REG_INC (reg:HI 16 r16 [orig:50 ivtmp.180 ] [50])
        (nil)))
../../../../../../../gcc.gnu.org/gcc-4_7-branch/newlib/libc/stdlib/mprec.c:419:1:
internal compiler error: in spill_failure, at reload1.c:2120
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[8]: *** [lib_a-mprec.o] Error 1
make[8]: Leaving directory
`/local/gnu/build/gcc-4.7-avr/avr/avr25/newlib/libc/stdlib'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/local/gnu/build/gcc-4.7-avr/avr/avr25/newlib/libc'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/local/gnu/build/gcc-4.7-avr/avr/avr25/newlib'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/local/gnu/build/gcc-4.7-avr/avr/avr25/newlib'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory `/local/gnu/build/gcc-4.7-avr/avr/newlib'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory `/local/gnu/build/gcc-4.7-avr/avr/newlib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/local/gnu/build/gcc-4.7-avr/avr/newlib'
make[1]: *** [all-target-newlib] Error 2
make[1]: Leaving directory `/local/gnu/build/gcc-4.7-avr'
make: *** [all] Error 2


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

* [Bug other/54490] [4.7 Regression] ICE: Spill failure in newlib build
  2012-09-05 11:52 [Bug other/54490] New: ICE: Spill failure in newlib build gjl at gcc dot gnu.org
@ 2012-09-05 11:55 ` gjl at gcc dot gnu.org
  2012-09-05 20:39 ` eric.weddington at atmel dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-09-05 11:55 UTC (permalink / raw)
  To: gcc-bugs

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-09-05
                 CC|                            |eric.weddington at atmel
                   |                            |dot com
     Ever Confirmed|0                           |1


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

* [Bug other/54490] [4.7 Regression] ICE: Spill failure in newlib build
  2012-09-05 11:52 [Bug other/54490] New: ICE: Spill failure in newlib build gjl at gcc dot gnu.org
  2012-09-05 11:55 ` [Bug other/54490] [4.7 Regression] " gjl at gcc dot gnu.org
@ 2012-09-05 20:39 ` eric.weddington at atmel dot com
  2012-09-05 21:24 ` gjl at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: eric.weddington at atmel dot com @ 2012-09-05 20:39 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Weddington <eric.weddington at atmel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
           Severity|major                       |normal

--- Comment #1 from Eric Weddington <eric.weddington at atmel dot com> 2012-09-05 20:39:08 UTC ---
Reducing importance. I don't know of anyone building toolchains with the avr
target and using newlib as the C library. The avr-rtems target should be tried,
though.


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

* [Bug other/54490] [4.7 Regression] ICE: Spill failure in newlib build
  2012-09-05 11:52 [Bug other/54490] New: ICE: Spill failure in newlib build gjl at gcc dot gnu.org
  2012-09-05 11:55 ` [Bug other/54490] [4.7 Regression] " gjl at gcc dot gnu.org
  2012-09-05 20:39 ` eric.weddington at atmel dot com
@ 2012-09-05 21:24 ` gjl at gcc dot gnu.org
  2012-09-06 14:43 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-09-05 21:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-09-05 21:24:40 UTC ---
I see hundreds of spill fails riunning the test suite -- with AVR-Libc.  Some
months ago, 2 or 3 pathological test cases failes with spill fails.  Now there
are hundreds of fails for simple test cases...


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

* [Bug other/54490] [4.7 Regression] ICE: Spill failure in newlib build
  2012-09-05 11:52 [Bug other/54490] New: ICE: Spill failure in newlib build gjl at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-09-05 21:24 ` gjl at gcc dot gnu.org
@ 2012-09-06 14:43 ` rguenth at gcc dot gnu.org
  2012-09-20 10:26 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-06 14:43 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.2


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

* [Bug other/54490] [4.7 Regression] ICE: Spill failure in newlib build
  2012-09-05 11:52 [Bug other/54490] New: ICE: Spill failure in newlib build gjl at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-09-06 14:43 ` rguenth at gcc dot gnu.org
@ 2012-09-20 10:26 ` jakub at gcc dot gnu.org
  2012-11-04  1:55 ` joel at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-20 10:26 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.2

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.2                       |4.7.3

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-20 10:20:44 UTC ---
GCC 4.7.2 has been released.


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

* [Bug other/54490] [4.7 Regression] ICE: Spill failure in newlib build
  2012-09-05 11:52 [Bug other/54490] New: ICE: Spill failure in newlib build gjl at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-09-20 10:26 ` jakub at gcc dot gnu.org
@ 2012-11-04  1:55 ` joel at gcc dot gnu.org
  2012-11-04  1:56 ` joel at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: joel at gcc dot gnu.org @ 2012-11-04  1:55 UTC (permalink / raw)
  To: gcc-bugs


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

Joel Sherrill <joel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joel at gcc dot gnu.org

--- Comment #4 from Joel Sherrill <joel at gcc dot gnu.org> 2012-11-04 01:55:21 UTC ---
Still happening but on a different file. Preprocessed source attached.

xgcc (GCC) 4.8.0 20121103 (experimental) [trunk revision 193124]

Short command to go with preprocessed source:



/home/joel/v850/tools/b-gcc-svn-avr-rtems4.11/./gcc/xgcc
-B/home/joel/v850/tools/b-gcc-svn-avr-rtems4.11/./gcc/ -mmcu=avr25  -Os 
-mcall-prologues  -Wall -fno-builtin      -g -O2 -c t.c

Fails similarly at -O2 and -Os. Works at -O0.

Full command:

/home/joel/v850/tools/b-gcc-svn-avr-rtems4.11/./gcc/xgcc
-B/home/joel/v850/tools/b-gcc-svn-avr-rtems4.11/./gcc/ -nostdinc
-B/home/joel/v850/tools/b-gcc-svn-avr-rtems4.11/avr-rtems4.11/avr25/newlib/
-isystem
/home/joel/v850/tools/b-gcc-svn-avr-rtems4.11/avr-rtems4.11/avr25/newlib/targ-include
-isystem /home/joel/v850/tools/gcc-svn/newlib/libc/include
-B/home/joel/v850/install/avr-rtems4.11/bin/
-B/home/joel/v850/install/avr-rtems4.11/lib/ -isystem
/home/joel/v850/install/avr-rtems4.11/include -isystem
/home/joel/v850/install/avr-rtems4.11/sys-include  -mmcu=avr25
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"1.20.0\" -DPACKAGE_STRING=\"newlib\ 1.20.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I../../../../../../gcc-svn/newlib/libc/time -Os -DPREFER_SIZE_OVER_SPEED
-mcall-prologues -D_COMPILING_NEWLIB -DMALLOC_PROVIDED -DEXIT_PROVIDED
-DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE
-DHAVE_FCNTL -DHAVE_ASSERT_FUNC -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT
-D_NO_GETPASS -D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN -Wall -fno-builtin      -g
-O2 -c -o lib_a-tzset_r.o `test -f 'tzset_r.c' || echo
'../../../../../../gcc-svn/newlib/libc/time/'`tzset_r.c
../../../../../../gcc-svn/newlib/libc/time/tzset_r.c: In function '_tzset_r':
../../../../../../gcc-svn/newlib/libc/time/tzset_r.c:203:1: error: unable to
find a register to spill in class 'R0_REG'
 }
 ^
../../../../../../gcc-svn/newlib/libc/time/tzset_r.c:203:1: error: this is the
insn:
(insn 474 471 477 34 (set (mem:QI (post_dec:HI (reg/f:HI 32 __SP_L__)) [0 S1
A8])
        (subreg:QI (reg/f:HI 441) 1))
../../../../../../gcc-svn/newlib/libc/time/tzset_r.c:128 1 {pushqi1}
     (expr_list:REG_ARGS_SIZE (const_int 13 [0xd])
        (nil)))
../../../../../../gcc-svn/newlib/libc/time/tzset_r.c:203:1: internal compiler
error: in spill_failure, at reload1.c:2124
0x84b8885 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
    ../../gcc-svn/gcc/rtl-error.c:110
0x84b84ff spill_failure
    ../../gcc-svn/gcc/reload1.c:2124
0x84b84ff find_reload_regs
    ../../gcc-svn/gcc/reload1.c:2050
0x84b84ff select_reload_regs
    ../../gcc-svn/gcc/reload1.c:2070
0x84b84ff reload(rtx_def*, int)
    ../../gcc-svn/gcc/reload1.c:991
0x83e31fd do_reload
    ../../gcc-svn/gcc/ira.c:4636
0x83e31fd rest_of_handle_reload
    ../../gcc-svn/gcc/ira.c:4737
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [lib_a-tzset_r.o] Error 1


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

* [Bug other/54490] [4.7 Regression] ICE: Spill failure in newlib build
  2012-09-05 11:52 [Bug other/54490] New: ICE: Spill failure in newlib build gjl at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-11-04  1:55 ` joel at gcc dot gnu.org
@ 2012-11-04  1:56 ` joel at gcc dot gnu.org
  2013-04-11  7:59 ` rguenth at gcc dot gnu.org
  2014-06-12 13:17 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: joel at gcc dot gnu.org @ 2012-11-04  1:56 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Joel Sherrill <joel at gcc dot gnu.org> 2012-11-04 01:56:28 UTC ---
Created attachment 28605
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28605
Preprocessed test case - from newlib


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

* [Bug other/54490] [4.7 Regression] ICE: Spill failure in newlib build
  2012-09-05 11:52 [Bug other/54490] New: ICE: Spill failure in newlib build gjl at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2012-11-04  1:56 ` joel at gcc dot gnu.org
@ 2013-04-11  7:59 ` rguenth at gcc dot gnu.org
  2014-06-12 13:17 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-11  7:59 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.3                       |4.7.4

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-11 07:59:33 UTC ---
GCC 4.7.3 is being released, adjusting target milestone.


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

* [Bug other/54490] [4.7 Regression] ICE: Spill failure in newlib build
  2012-09-05 11:52 [Bug other/54490] New: ICE: Spill failure in newlib build gjl at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2013-04-11  7:59 ` rguenth at gcc dot gnu.org
@ 2014-06-12 13:17 ` rguenth at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54490

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|4.7.4                       |4.8.0

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Well, I suppose 4.8.0 works.


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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-05 11:52 [Bug other/54490] New: ICE: Spill failure in newlib build gjl at gcc dot gnu.org
2012-09-05 11:55 ` [Bug other/54490] [4.7 Regression] " gjl at gcc dot gnu.org
2012-09-05 20:39 ` eric.weddington at atmel dot com
2012-09-05 21:24 ` gjl at gcc dot gnu.org
2012-09-06 14:43 ` rguenth at gcc dot gnu.org
2012-09-20 10:26 ` jakub at gcc dot gnu.org
2012-11-04  1:55 ` joel at gcc dot gnu.org
2012-11-04  1:56 ` joel at gcc dot gnu.org
2013-04-11  7:59 ` rguenth at gcc dot gnu.org
2014-06-12 13:17 ` rguenth 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).