With revision 146828 plus the patch at
<http://gcc.gnu.org/ml/gcc-patches/2009-04/msg02133.html> a build of cris-elf
completes (that's a required patch as the tree is broken without it, see the
URL).

With revision 146829 plus the same patch patch, the build is (again) broken as
follows:

/tmp/buildice9/gccobj/./gcc/xgcc -B/tmp/buildice9/gccobj/./gcc/ -nostdinc
-B/tmp/buildice9/gccobj/cris-elf/newlib/ -isystem
/tmp/buildice9/gccobj/cris-elf/newlib/targ-include -isystem
/tmp/buildice9/gcc/newlib/libc/include
-B/tmp/buildice9/gccobj/cris-elf/libgloss/cris
-L/tmp/buildice9/gccobj/cris-elf/libgloss/libnosys
-L/tmp/buildice9/gcc/libgloss/cris -B/tmp/buildice9/pre/cris-elf/bin/
-B/tmp/buildice9/pre/cris-elf/lib/ -isystem /tmp/buildice9/pre/cris-elf/include
-isystem /tmp/buildice9/pre/cris-elf/sys-include -g -O2 -march=v10
-mbest-lib-options -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition  -isystem ./include   -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I. -I../../.././gcc
-I/tmp/buildice9/gcc/libgcc -I/tmp/buildice9/gcc/libgcc/.
-I/tmp/buildice9/gcc/libgcc/../gcc -I/tmp/buildice9/gcc/libgcc/../include 
-DHAVE_CC_TLS -o _udivdi3.o -MT _udivdi3.o -MD -MP -MF _udivdi3.dep -DL_udivdi3
-c /tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c \
          -fexceptions -fnon-call-exceptions
/tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c: In function '__udivdi3':
/tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c:1141: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [_udivdi3.o] Error 1
make[4]: Leaving directory `/tmp/buildice9/gccobj/cris-elf/v10/libgcc'

Author of the patch for this revision is CC:ed.

Backtrace of rm *.o; make all-gcc CFLAGS=-g gdb cc1:
Program received signal SIGSEGV, Segmentation fault.
0x00000000005f279c in df_get_live_in (bb=0x2aaaaadbe060) at
/tmp/buildice9/gcc/gcc/df-problems.c:91
91          return DF_LIVE_IN (bb);
(gdb) bt
#0  0x00000000005f279c in df_get_live_in (bb=0x2aaaaadbe060) at
/tmp/buildice9/gcc/gcc/df-problems.c:91
#1  0x00000000008ddb3c in mark_target_live_regs (insns=0x2aaaaad82600,
target=0x2aaaaadbb550, res=0x7fff40825340)
    at /tmp/buildice9/gcc/gcc/resource.c:1055
#2  0x00000000008ddd0d in mark_target_live_regs (insns=0x2aaaaad82600,
target=0x2aaaaadbbc30, res=0x7fff408254d0)
    at /tmp/buildice9/gcc/gcc/resource.c:1096
#3  0x00000000008d7cd2 in fill_slots_from_thread (insn=0x2aaaaad93c80,
condition=0x2aaaaadba800, 
    thread=0x2aaaaad93d20, opposite_thread=0x2aaaaadbbc30, likely=0,
thread_if_true=0, own_thread=1, slots_to_fill=1, 
    pslots_filled=0x7fff408255c4, delay_list=0x0) at
/tmp/buildice9/gcc/gcc/reorg.c:2597
#4  0x00000000008d8fa3 in fill_eager_delay_slots () at
/tmp/buildice9/gcc/gcc/reorg.c:3101
#5  0x00000000008dafb8 in dbr_schedule (first=0x2aaaaad82600) at
/tmp/buildice9/gcc/gcc/reorg.c:3891
#6  0x00000000008db7fd in rest_of_handle_delay_slots () at
/tmp/buildice9/gcc/gcc/reorg.c:4064
#7  0x000000000085f8d8 in execute_one_pass (pass=0x1118200) at
/tmp/buildice9/gcc/gcc/passes.c:1286
#8  0x000000000085fb21 in execute_pass_list (pass=0x1118200) at
/tmp/buildice9/gcc/gcc/passes.c:1335
#9  0x000000000085fb3f in execute_pass_list (pass=0x11178a0) at
/tmp/buildice9/gcc/gcc/passes.c:1336
#10 0x000000000085fb3f in execute_pass_list (pass=0x1117840) at
/tmp/buildice9/gcc/gcc/passes.c:1336
#11 0x00000000009a1e47 in tree_rest_of_compilation (fndecl=0x2aaaaabbea00)
    at /tmp/buildice9/gcc/gcc/tree-optimize.c:394
#12 0x0000000000b81e32 in cgraph_expand_function (node=0x2aaaaacb7200) at
/tmp/buildice9/gcc/gcc/cgraphunit.c:1051
#13 0x0000000000b81fe5 in cgraph_expand_all_functions () at
/tmp/buildice9/gcc/gcc/cgraphunit.c:1110
#14 0x0000000000b825ae in cgraph_optimize () at
/tmp/buildice9/gcc/gcc/cgraphunit.c:1324
#15 0x00000000004873be in c_write_global_declarations () at
/tmp/buildice9/gcc/gcc/c-decl.c:8306
#16 0x000000000092787c in compile_file () at
/tmp/buildice9/gcc/gcc/toplev.c:988
#17 0x000000000092974d in do_compile () at /tmp/buildice9/gcc/gcc/toplev.c:2248
#18 0x000000000092980d in toplev_main (argc=31, argv=0x7fff40825b38) at
/tmp/buildice9/gcc/gcc/toplev.c:2293
#19 0x0000000000538b3f in main (argc=31, argv=0x7fff40825b38) at
/tmp/buildice9/gcc/gcc/main.c:35
(gdb) p bb
$1 = (basic_block) 0x2aaaaadbe060
(gdb) pbb
;; basic block 42, loop depth 0, count 0
;; prev block 41, next block 43
;; pred:       41 [100.0%]  (fallthru,can_fallthru) 55 [100.0%] 
;; succ:       EXIT [100.0%] 
;; bb 42 artificial_defs: { }
;; bb 42 artificial_uses: { u-1(14){ }}

(code_label 651 12 623 42 31 "" [1 uses])
(note 623 651 615 [bb 42] NOTE_INSN_BASIC_BLOCK)
(insn 615 623 616 /tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c:1141 (asm_input/v
("") 0) -1 (nil))
(insn 616 615 617 /tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c:1141 (set (reg:SI
11 r11 [+4 ])
        (reg:SI 17 mof [orig:156 prephitmp.30 ] [156])) 38 {*movsi_internal}
(expr_list:REG_DEAD (reg:SI 17 mof [orig:156 prephitmp.30 ] [156])
        (nil)))
(insn 617 616 618 /tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c:1141 (asm_input/v
("") 0) -1 (nil))
(insn 618 617 816 /tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c:1141 (use
(reg/i:DI 10 r10)) -1 (nil))
(note 816 618 619 ( q0 (nil)) NOTE_INSN_VAR_LOCATION)
(insn 619 816 821 /tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c:1141 (parallel [
            (set (reg:SI 8 r8)
                (mem:SI (reg/f:SI 14 sp) [7 S4 A8]))
            (set (reg/f:SI 14 sp)
                (plus:SI (reg/f:SI 14 sp)
                    (const_int 36 [0x24])))
            (set (reg:SI 7 r7)
                (mem:SI (plus:SI (reg/f:SI 14 sp)
                        (const_int 4 [0x4])) [7 S4 A8]))
            (set (reg:SI 6 r6)
                (mem:SI (plus:SI (reg/f:SI 14 sp)
                        (const_int 8 [0x8])) [7 S4 A8]))
            (set (reg:SI 5 r5)
                (mem:SI (plus:SI (reg/f:SI 14 sp)
                        (const_int 12 [0xc])) [7 S4 A8]))
            (set (reg:SI 4 r4)
                (mem:SI (plus:SI (reg/f:SI 14 sp)
                        (const_int 16 [0x10])) [7 S4 A8]))
            (set (reg:SI 3 r3)
                (mem:SI (plus:SI (reg/f:SI 14 sp)
                        (const_int 20 [0x14])) [7 S4 A8]))
            (set (reg:SI 2 r2)
                (mem:SI (plus:SI (reg/f:SI 14 sp)
                        (const_int 24 [0x18])) [7 S4 A8]))
            (set (reg:SI 1 r1)
                (mem:SI (plus:SI (reg/f:SI 14 sp)
                        (const_int 28 [0x1c])) [7 S4 A8]))
            (set (reg:SI 0 r0)
                (mem:SI (plus:SI (reg/f:SI 14 sp)
                        (const_int 32 [0x20])) [7 S4 A8]))
        ]) 50 {*cris_load_multiple} (nil))
(note 821 619 820 ( __m (nil)) NOTE_INSN_VAR_LOCATION)
(note 820 821 819 ( d1 (nil)) NOTE_INSN_VAR_LOCATION)
(note 819 820 818 ( __r0 (nil)) NOTE_INSN_VAR_LOCATION)
(note 818 819 817 ( n (nil)) NOTE_INSN_VAR_LOCATION)
(note 817 818 620 ( __x0 (nil)) NOTE_INSN_VAR_LOCATION)
(insn 620 817 621 /tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c:1141 (set (mem:BLK
(reg/f:SI 14 sp) [0 A8])
        (unspec:BLK [
                (const_int 0 [0x0])
            ] 8)) 228 {cris_frame_deallocated_barrier} (nil))
(insn 621 620 622 /tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c:1141 (set
(reg/f:SI 14 sp)
        (plus:SI (reg/f:SI 14 sp)
            (const_int 36 [0x24]))) 75 {*addsi3_non_v32} (nil))
(jump_insn 622 621 625 /tmp/buildice9/gcc/libgcc/../gcc/libgcc2.c:1141 (return)
190 {*return_expanded} (nil))

(gdb) 
Preprocessed libgcc2.i will be attached momentarily.


-- 
           Summary: [4.5 Regression]: build broke for cris-elf with
                    dbr_schedule change
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, build
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hp at gcc dot gnu dot org
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: cris-axis-elf


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

Reply via email to