This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52918] New: ICE: Invalid bb->loop_father (NULL) in add_bb_to_loop


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

             Bug #: 52918
           Summary: ICE: Invalid bb->loop_father (NULL) in add_bb_to_loop
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bscottm@ieee.org


SVN revision 186249, while compiling gcc for MinGW-w64 (Win64) in the
x86_64-w64-mingw32/libstdc++-v3/libsupc++ runtime, encouters this ICE
backtrace:

(gdb) bt
#0  add_bb_to_loop (bb=0x84018b8, loop=0x0) at ../../../gcc/gcc/cfgloop.c:1652
#1  0x0098dcea in split_block (bb=0x8401870, i=0x840b270) at
../../../gcc/gcc/cfghooks.c:450
#2  0x00a03dcf in find_bb_boundaries (bb=0x8401870) at
../../../gcc/gcc/cfgbuild.c:474
#3  find_many_sub_basic_blocks (blocks=0x82339a0) at
../../../gcc/gcc/cfgbuild.c:594
#4  0x008399a1 in break_superblocks () at ../../../gcc/gcc/cfglayout.c:1345
#5  0x00712779 in finish_eh_generation () at ../../../gcc/gcc/except.c:1431
#6  0x00cd5d95 in gimple_expand_cfg () at ../../../gcc/gcc/cfgexpand.c:4652
#7  0x00864243 in execute_one_pass (pass=0x102c3c0) at
../../../gcc/gcc/passes.c:2079
#8  0x008645a5 in execute_pass_list (pass=0x102c3c0) at
../../../gcc/gcc/passes.c:2134
#9  0x009e54f6 in tree_rest_of_compilation (fndecl=0x8203d00) at
../../../gcc/gcc/tree-optimize.c:422
#10 0x00869364 in cgraph_expand_function (node=0x833ef18) at
../../../gcc/gcc/cgraphunit.c:1784
#11 0x0086afe7 in cgraph_expand_all_functions () at
../../../gcc/gcc/cgraphunit.c:1851
#12 cgraph_optimize () at ../../../gcc/gcc/cgraphunit.c:2542
#13 0x0086b88c in cgraph_finalize_compilation_unit () at
../../../gcc/gcc/cgraphunit.c:2628
#14 0x004faa17 in cp_write_global_declarations () at
../../../gcc/gcc/cp/decl2.c:4077
#15 0x0087395a in compile_file () at ../../../gcc/gcc/toplev.c:572
#16 do_compile () at ../../../gcc/gcc/toplev.c:1936
#17 toplev_main (argc=49, argv=0x2f4c40) at ../../../gcc/gcc/toplev.c:2012
#18 0x010037e8 in main (argc=49, argv=0x2f4c40) at ../../../gcc/gcc/main.c:36

Compiler diagnostic output:
../../../../../gcc/libstdc++-v3/libsupc++/eh_alloc.cc: In function 'void*
__cxxabiv1::__cxa_allocate_exception(std::size_t)':
../../../../../gcc/libstdc++-v3/libsupc++/eh_alloc.cc:138:1: internal compiler
error: Segmentation fault

Compiler command line:
/c/scottm/mingw64-build/gcc/./gcc/xgcc -v -shared-libgcc
-B/c/scottm/mingw64-build/gcc/./gcc -nostdinc++
-L/c/scottm/mingw64-build/gcc/x86_64-w64-mingw32/libstdc++-v3/src
-L/c/scottm/mingw64-build/gcc/x86_64-w64-mingw32/libstdc++-v3/src/.libs
-L/c/mingw64-devel/x86_64-w64-mingw32/lib -L/c/mingw64-devel/mingw/lib -isystem
/c/mingw64-devel/x86_64-w64-mingw32/include -isystem
/c/mingw64-devel/mingw/include -B/c/mingw64-devel/x86_64-w64-mingw32/bin/
-B/c/mingw64-devel/x86_64-w64-mingw32/lib/ -isystem
/c/mingw64-devel/x86_64-w64-mingw32/include -isystem
/c/mingw64-devel/x86_64-w64-mingw32/sys-include
-I/c/scottm/gcc/libstdc++-v3/../libgcc
-I/c/scottm/mingw64-build/gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
-I/c/scottm/mingw64-build/gcc/x86_64-w64-mingw32/libstdc++-v3/include
-I/c/scottm/gcc/libstdc++-v3/libsupc++ -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi -fdiagnostics-show-location=once -ffunction-sections
-fdata-sections -frandom-seed=eh_alloc.lo -g -O2 -c
../../../../../gcc/libstdc++-v3/libsupc++/eh_alloc.cc -o eh_alloc.o

Verbose xgcc output:
Reading specs from c:/scottm/mingw64-build/gcc/gcc/specs
COLLECT_GCC=c:\scottm\mingw64-build\gcc\gcc\xgcc.exe
Target: x86_64-w64-mingw32
Configured with: ../../gcc/configure --target=x86_64-w64-mingw32
--enable-targets=all --with-sysroot=/c/mingw64-devel --prefix=/c/mi
ngw64-devel
Thread model: win32
gcc version 4.8.0 20120409 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-B'
'c:/scottm/mingw64-build/gcc/gcc' '-nostdinc++'
'-Lc:/scottm/mingw64-build/gcc/x86_64
-w64-mingw32/libstdc++-v3/src'
'-Lc:/scottm/mingw64-build/gcc/x86_64-w64-mingw32/libstdc++-v3/src/.libs'
'-Lc:/mingw64-devel/x86_64-
w64-mingw32/lib' '-Lc:/mingw64-devel/mingw/lib' '-isystem'
'c:/mingw64-devel/x86_64-w64-mingw32/include' '-isystem' 'c:/mingw64-deve
l/mingw/include' '-B' 'c:/mingw64-devel/x86_64-w64-mingw32/bin/' '-B'
'c:/mingw64-devel/x86_64-w64-mingw32/lib/' '-isystem' 'c:/ming
w64-devel/x86_64-w64-mingw32/include' '-isystem'
'c:/mingw64-devel/x86_64-w64-mingw32/sys-include' '-I'
'c:/scottm/gcc/libstdc++-v3/
../libgcc' '-I'
'c:/scottm/mingw64-build/gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32'
'-I' 'c:/scottm/mingw64-bui
ld/gcc/x86_64-w64-mingw32/libstdc++-v3/include' '-I'
'c:/scottm/gcc/libstdc++-v3/libsupc++' '-Wall' '-Wextra' '-Wwrite-strings' '-Wc
ast-qual' '-Wabi' '-fdiagnostics-show-location=once' '-ffunction-sections'
'-fdata-sections' '-frandom-seed=eh_alloc.lo' '-g' '-O2'
'-c' '-o' 'eh_alloc.o' '-mtune=generic' '-march=x86-64'
 c:/scottm/mingw64-build/gcc/gcc/cc1plus.exe -quiet -nostdinc++ -v -I
c:/scottm/gcc/libstdc++-v3/../libgcc -I c:/scottm/mingw64-buil
d/gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32 -I
c:/scottm/mingw64-build/gcc/x86_64-w64-mingw32/libstdc++-v3/incl
ude -I c:/scottm/gcc/libstdc++-v3/libsupc++ -iprefix
c:\scottm\mingw64-build\gcc\gcc\../lib/gcc/x86_64-w64-mingw32/4.8.0/ -isystem c
:/scottm/mingw64-build/gcc/gcc/include -isystem
c:/scottm/mingw64-build/gcc/gcc/include-fixed -U_REENTRANT -isystem
c:/mingw64-devel
/x86_64-w64-mingw32/include -isystem c:/mingw64-devel/mingw/include -isystem
c:/mingw64-devel/x86_64-w64-mingw32/include -isystem c:
/mingw64-devel/x86_64-w64-mingw32/sys-include
../../../../../gcc/libstdc++-v3/libsupc++/eh_alloc.cc -quiet -dumpbase
eh_alloc.cc -mt
une=generic -march=x86-64 -auxbase-strip eh_alloc.o -g -O2 -Wall -Wextra
-Wwrite-strings -Wcast-qual -Wabi -version -fdiagnostics-sh
ow-location=once -ffunction-sections -fdata-sections -frandom-seed=eh_alloc.lo
-o C:\DOCUME~1\bsm21317\LOCALS~1\Temp\ccVBdcUf.s
GNU C++ (GCC) version 4.8.0 20120409 (experimental) (x86_64-w64-mingw32)
        compiled by GNU C version 4.6.2, GMP version 5.0.4, MPFR version 3.1.0,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring duplicate directory "c:/mingw64-devel/x86_64-w64-mingw32/include"
ignoring nonexistent directory
"c:/mingw64-devel/x86_64-w64-mingw32/sys-include"
ignoring nonexistent directory
"c:\scottm\mingw64-build\gcc\gcc\../lib/gcc/x86_64-w64-mingw32/4.8.0/include"
ignoring nonexistent directory
"c:\scottm\mingw64-build\gcc\gcc\../lib/gcc/x86_64-w64-mingw32/4.8.0/include-fixed"
ignoring nonexistent directory
"c:\scottm\mingw64-build\gcc\gcc\../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/i
nclude"
ignoring nonexistent directory
"c:/scottm/mingw64-build/gcc/lib/gcc/x86_64-w64-mingw32/4.8.0/include"
ignoring nonexistent directory
"c:/mingw64-develc:/mingw64-devel/lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../include"
ignoring nonexistent directory
"c:/scottm/mingw64-build/gcc/lib/gcc/x86_64-w64-mingw32/4.8.0/include-fixed"
ignoring nonexistent directory
"c:/scottm/mingw64-build/gcc/x86_64-w64-mingw32/include"
ignoring nonexistent directory "c:/mingw64-develc:/MinGW/include"
#include "..." search starts here:
#include <...> search starts here:
 c:/scottm/gcc/libstdc++-v3/../libgcc

c:/scottm/mingw64-build/gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
 c:/scottm/mingw64-build/gcc/x86_64-w64-mingw32/libstdc++-v3/include
 c:/scottm/gcc/libstdc++-v3/libsupc++
 c:/scottm/mingw64-build/gcc/gcc/include
 c:/scottm/mingw64-build/gcc/gcc/include-fixed
 c:/mingw64-devel/x86_64-w64-mingw32/include
 c:/mingw64-devel/mingw/include
End of search list.
GNU C++ (GCC) version 4.8.0 20120409 (experimental) (x86_64-w64-mingw32)
        compiled by GNU C version 4.6.2, GMP version 5.0.4, MPFR version 3.1.0,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: a0a3dadfbb9d9b3477d3c717540783e7
../../../../../gcc/libstdc++-v3/libsupc++/eh_alloc.cc: In function 'void*
__cxxabiv1::__cxa_allocate_exception(std::size_t)':
../../../../../gcc/libstdc++-v3/libsupc++/eh_alloc.cc:138:1: 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]