https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68157
Bug ID: 68157 Summary: internal compiler error: in reassoc_stmt_dominates_stmt_p, at tree-ssa-reassoc.c:1287 Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: a.niemoeller2 at gmail dot com Target Milestone: --- command line: $ cd /home/ansgar/scratch/svn/gcc5/src && /pds/opt/gcc-5.1-0/bin/g++ -O3 -DNDEBUG -fstrict-aliasing -fno-rtti -fno-exceptions -fomit-frame-pointer -fno-unroll-loops -DCOMPILER_ATTRIBUTES -DUSE_RESTRICT -fno-tree-vectorize -mtune=native -pipe -fdata-sections -ffunction-sections -Wl,--gc-sections -funsafe-loop-optimizations -funsafe-math-optimizations -fcx-limited-range -fno-signaling-nans -fno-math-errno -DDISABLE_FV_MG -march=native -mtune=native -Wunused -Werror -Wall -Wextra -std=c++11 -pedantic -Wshadow -Wfloat-equal -Wcast-align -Wfloat-equal -Wdisabled-optimization -Wformat=2 -Winvalid-pch -Winit-self -Wmissing-include-dirs -Wredundant-decls -Wpacked -Wpointer-arith -Wstack-protector -Wstrict-aliasing=3 -Wswitch-default -Wwrite-strings -Wlogical-op -Wno-array-bounds -Wno-maybe-uninitialized -fdiagnostics-color=auto -I/home/ansgar/scratch/svn/gcc5/src -isystem /pds/opt/fftw/include -isystem /pds/opt/parallel-netcdf/include -isystem /pds/opt/openmpi/include -o CMakeFiles/zfs.dir/zfslbmpartcont.cpp.o -c /home/ansgar/scratch/svn/gcc5/src/zfslbmpartcont.cpp compiler output: /home/ansgar/scratch/svn/gcc5/src/zfslbmpartcont.cpp: In member function ‘void ZFSLbmPartCont::detectPartColl()’: /home/ansgar/scratch/svn/gcc5/src/zfslbmpartcont.cpp:2293:6: internal compiler error: in reassoc_stmt_dominates_stmt_p, at tree-ssa-reassoc.c:1287 void ZFSLbmPartCont::detectPartColl() ^ 0xbe41f9 reassoc_stmt_dominates_stmt_p ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:1287 0xbe43f9 sort_by_operand_rank ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:598 0xbee6f5 vec<operand_entry*, va_heap, vl_embed>::qsort(int (*)(void const*, void const*)) ../../gcc-5.1.0/gcc/vec.h:960 0xbee6f5 vec<operand_entry*, va_heap, vl_ptr>::qsort(int (*)(void const*, void const*)) ../../gcc-5.1.0/gcc/vec.h:1688 0xbee6f5 reassociate_bb ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:4832 0xbee5a7 reassociate_bb ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:4916 0xbee5a7 reassociate_bb ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:4916 0xbee5a7 reassociate_bb ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:4916 0xbee5a7 reassociate_bb ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:4916 0xbee5a7 reassociate_bb ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:4916 0xbf0883 do_reassoc ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:5025 0xbf0883 execute_reassoc ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:5107 0xbf0883 execute ../../gcc-5.1.0/gcc/tree-ssa-reassoc.c:5140 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. gcc 5.1.0 ./configure --prefix=... GNU/Linux (openSUSE 12.3) The error does not occur when -fno-math-errno is omitted.