public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/58519] New: [4.9 regression] ICE in eliminate_regs_1
@ 2013-09-24  9:19 schwab@linux-m68k.org
  2013-09-24 10:49 ` [Bug rtl-optimization/58519] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2013-09-24  9:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58519
           Summary: [4.9 regression] ICE in eliminate_regs_1
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: build, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schwab@linux-m68k.org
                CC: rsandifo at gcc dot gnu.org
            Target: m68k-*-*

Regressed by r202839.

$ ../../gcc/gcj -B./ -B../../gcc/ -fclasspath=
-fbootclasspath=../../../libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated
-fbootstrap-classes -g -O2 -c -fsource-filename=classpath/lib/classes -MT
java/util.lo -MD -MP -MF java/util.deps @java/util.list  -fPIC -o
java/.libs/util.o
/daten/aranym/gcc/test/libjava/classpath/java/util/Timer.java: In class
'java.util.Timer':
[...]
/daten/aranym/gcc/test/libjava/classpath/java/util/Timer.java:578:0: internal
compiler error: Segmentation fault
   }
 ^
0x86471f crash_signal
        ../../gcc/toplev.c:335
0x80241c eliminate_regs_1
        ../../gcc/reload1.c:2556
0x802c24 eliminate_regs_1
        ../../gcc/reload1.c:2927
0x806caf eliminate_regs_in_insn
        ../../gcc/reload1.c:3624
0x80aef8 calculate_needs_all_insns
        ../../gcc/reload1.c:1516
0x80aef8 reload(rtx_def*, int)
        ../../gcc/reload1.c:941
0x7269f8 do_reload
        ../../gcc/ira.c:4698
0x7269f8 rest_of_handle_reload
        ../../gcc/ira.c:4815
0x7269f8 execute
        ../../gcc/ira.c:4844

Program received signal SIGSEGV, Segmentation fault.
eliminate_regs_1 (x=0x0, mem_mode=VOIDmode, insn=0x7ffff1c00f60, 
    may_use_invariant=false, for_costs=false) at ../../gcc/reload1.c:2556
2556      enum rtx_code code = GET_CODE (x);
(gdb) bt
#0  eliminate_regs_1 (x=0x0, mem_mode=VOIDmode, insn=0x7ffff1c00f60, 
    may_use_invariant=false, for_costs=false) at ../../gcc/reload1.c:2556
#1  0x0000000000802c25 in eliminate_regs_1 (x=0x7ffff1c00f60, 
    mem_mode=VOIDmode, insn=0x7ffff1c00f60, may_use_invariant=<optimized out>, 
    for_costs=<optimized out>) at ../../gcc/reload1.c:2927
#2  0x0000000000806cb0 in eliminate_regs_in_insn (
    insn=insn@entry=0x7ffff14f1960, replace=replace@entry=0)
    at ../../gcc/reload1.c:3624
#3  0x000000000080aef9 in calculate_needs_all_insns (global=1)
    at ../../gcc/reload1.c:1516
#4  reload (first=0x7ffff31e85c0, global=1) at ../../gcc/reload1.c:941
#5  0x00000000007269f9 in do_reload () at ../../gcc/ira.c:4698
#6  rest_of_handle_reload () at ../../gcc/ira.c:4815
#7  (anonymous namespace)::pass_reload::execute (this=<optimized out>)
    at ../../gcc/ira.c:4844
#8  0x00000000007bcd4a in execute_one_pass (pass=pass@entry=0x10ac440)
    at ../../gcc/passes.c:2201
#9  0x00000000007bcf96 in execute_pass_list (pass=0x10ac440)
    at ../../gcc/passes.c:2253
#10 0x00000000007bcfa8 in execute_pass_list (pass=0x10ab360)
    at ../../gcc/passes.c:2254
#11 0x000000000058116f in expand_function (node=0x7ffff390c850)
    at ../../gcc/cgraphunit.c:1750
#12 0x00000000005831ed in expand_all_functions ()
    at ../../gcc/cgraphunit.c:1855
#13 compile () at ../../gcc/cgraphunit.c:2192
#14 0x00000000005837b5 in finalize_compilation_unit ()
    at ../../gcc/cgraphunit.c:2269
#15 0x000000000074c2bb in write_global_declarations ()
    at ../../gcc/langhooks.c:322
#16 0x00000000004cb196 in java_write_globals () at ../../gcc/java/class.c:3277
#17 0x0000000000864ca5 in compile_file () at ../../gcc/toplev.c:560
#18 0x0000000000866a22 in do_compile () at ../../gcc/toplev.c:1891
#19 toplev_main (argc=31, argv=0x7fffffffd768) at ../../gcc/toplev.c:1967
#20 0x00007ffff6c46a15 in __libc_start_main (main=
    0x4c2790 <main(int, char**)>, argc=31, ubp_av=0x7fffffffd768, 
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, 
    stack_end=0x7fffffffd758) at libc-start.c:258
#21 0x00000000004c2811 in _start () at ../sysdeps/x86_64/start.S:123

#1  0x0000000000802c25 in eliminate_regs_1 (x=0x7ffff1c00f60, 
    mem_mode=VOIDmode, insn=0x7ffff1c00f60, may_use_invariant=<optimized out>, 
    for_costs=<optimized out>) at ../../gcc/reload1.c:2927
2927                                          for_costs);
(gdb) p x
$1 = (rtx) 0x7ffff1c00f60
(gdb) pr
(int_list:REG_BR_PROB 7300 (nil))
(gdb) up
#2  0x0000000000806cb0 in eliminate_regs_in_insn (
    insn=insn@entry=0x7ffff14f1960, replace=replace@entry=0)
    at ../../gcc/reload1.c:3624
3624                              false);
(gdb) p insn
$2 = (rtx) 0x7ffff14f1960
(gdb) pr
(jump_insn 10 9 11 2 (set (pc)
        (if_then_else (ge (mem/c:DI (plus:SI (reg/f:SI 14 %a6)
                        (const_int 8 [0x8])) [27 delay+0 S8 A32])
                (const_int 0 [0]))
            (label_ref:SI 18)
            (pc)))
/daten/aranym/gcc/test/libjava/classpath/java/util/Timer.java:574 388 {bge0_di}
     (int_list:REG_BR_PROB 7300 (nil))
 -> 18)


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

* [Bug rtl-optimization/58519] [4.9 regression] ICE in eliminate_regs_1
  2013-09-24  9:19 [Bug rtl-optimization/58519] New: [4.9 regression] ICE in eliminate_regs_1 schwab@linux-m68k.org
@ 2013-09-24 10:49 ` rguenth at gcc dot gnu.org
  2013-09-24 15:23 ` sje at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-24 10:49 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.0


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

* [Bug rtl-optimization/58519] [4.9 regression] ICE in eliminate_regs_1
  2013-09-24  9:19 [Bug rtl-optimization/58519] New: [4.9 regression] ICE in eliminate_regs_1 schwab@linux-m68k.org
  2013-09-24 10:49 ` [Bug rtl-optimization/58519] " rguenth at gcc dot gnu.org
@ 2013-09-24 15:23 ` sje at gcc dot gnu.org
  2013-09-24 16:14 ` schwab@linux-m68k.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sje at gcc dot gnu.org @ 2013-09-24 15:23 UTC (permalink / raw)
  To: gcc-bugs

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

Steve Ellcey <sje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|m68k-*-*                    |m68k-*-* mips*-*-*
                 CC|                            |sje at gcc dot gnu.org

--- Comment #1 from Steve Ellcey <sje at gcc dot gnu.org> ---
I am seeing this segfault while building newlib with GCC on MIPS.

/local/home/sellcey/nightly/src/newlib/newlib/libc/stdio/vdiprintf.c:34:1:
internal compiler error: Segmentation fault
 }
 ^
0xac9f11 crash_signal
        /local/home/sellcey/nightly/src/gcc/gcc/toplev.c:335
0xa3532a eliminate_regs_1
        /local/home/sellcey/nightly/src/gcc/gcc/reload1.c:2556
0xa362d1 eliminate_regs_1
        /local/home/sellcey/nightly/src/gcc/gcc/reload1.c:2927
0xa37e21 eliminate_regs_in_insn
        /local/home/sellcey/nightly/src/gcc/gcc/reload1.c:3624
0xa321a4 calculate_needs_all_insns
        /local/home/sellcey/nightly/src/gcc/gcc/reload1.c:1516
0xa304e6 reload(rtx_def*, int)
        /local/home/sellcey/nightly/src/gcc/gcc/reload1.c:941
0x8f7f1d do_reload
        /local/home/sellcey/nightly/src/gcc/gcc/ira.c:4698
0x8f8156 rest_of_handle_reload
        /local/home/sellcey/nightly/src/gcc/gcc/ira.c:4815
0x8f81a0 execute
        /local/home/sellcey/nightly/src/gcc/gcc/ira.c:4844
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[8]: *** [lib_a-vdiprintf.o] Error 1


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

* [Bug rtl-optimization/58519] [4.9 regression] ICE in eliminate_regs_1
  2013-09-24  9:19 [Bug rtl-optimization/58519] New: [4.9 regression] ICE in eliminate_regs_1 schwab@linux-m68k.org
  2013-09-24 10:49 ` [Bug rtl-optimization/58519] " rguenth at gcc dot gnu.org
  2013-09-24 15:23 ` sje at gcc dot gnu.org
@ 2013-09-24 16:14 ` schwab@linux-m68k.org
  2013-09-24 16:33 ` sje at gcc dot gnu.org
  2013-10-01 20:37 ` sje at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2013-09-24 16:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
See <http://permalink.gmane.org/gmane.comp.gcc.patches/293919> for a possible
patch.


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

* [Bug rtl-optimization/58519] [4.9 regression] ICE in eliminate_regs_1
  2013-09-24  9:19 [Bug rtl-optimization/58519] New: [4.9 regression] ICE in eliminate_regs_1 schwab@linux-m68k.org
                   ` (2 preceding siblings ...)
  2013-09-24 16:14 ` schwab@linux-m68k.org
@ 2013-09-24 16:33 ` sje at gcc dot gnu.org
  2013-10-01 20:37 ` sje at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: sje at gcc dot gnu.org @ 2013-09-24 16:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Steve Ellcey <sje at gcc dot gnu.org> ---
That fixed the small testcase I created, I will try a complete build next.


For the record the test case that fails with MIPS GCC (-O2 -g -mips64) is:

_vdiprintf_r(struct _reent *ptr , int fd , const char *format ,
__builtin_va_list ap)
{
  char *p;
  char buf[512];
  int n = 512;
  p = _vasniprintf_r (ptr, buf, &n, format, ap);
  if (p != buf)
    _free_r (ptr, p);
}


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

* [Bug rtl-optimization/58519] [4.9 regression] ICE in eliminate_regs_1
  2013-09-24  9:19 [Bug rtl-optimization/58519] New: [4.9 regression] ICE in eliminate_regs_1 schwab@linux-m68k.org
                   ` (3 preceding siblings ...)
  2013-09-24 16:33 ` sje at gcc dot gnu.org
@ 2013-10-01 20:37 ` sje at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: sje at gcc dot gnu.org @ 2013-10-01 20:37 UTC (permalink / raw)
  To: gcc-bugs

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

Steve Ellcey <sje at gcc dot gnu.org> changed:

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

--- Comment #4 from Steve Ellcey <sje at gcc dot gnu.org> ---
This was fixed with the patch

http://gcc.gnu.org/ml/gcc-patches/2013-09/msg01800.html

and that is now checked in so I am closing this bug.


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

end of thread, other threads:[~2013-10-01 20:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-24  9:19 [Bug rtl-optimization/58519] New: [4.9 regression] ICE in eliminate_regs_1 schwab@linux-m68k.org
2013-09-24 10:49 ` [Bug rtl-optimization/58519] " rguenth at gcc dot gnu.org
2013-09-24 15:23 ` sje at gcc dot gnu.org
2013-09-24 16:14 ` schwab@linux-m68k.org
2013-09-24 16:33 ` sje at gcc dot gnu.org
2013-10-01 20:37 ` sje 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).