https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61461
Bug ID: 61461 Summary: -fdump-rtl-all-slim causes ICE with fold-const.c Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bernd.edlinger at hotmail dot de When I try to print the dumps of fold-const.c with -fdump-rtl-all-slim cc1plus crashes: /home/ed/gnu/gcc-build/./gcc/xg++ -B/home/ed/gnu/gcc-build/./gcc/ -B/home/ed/gnu/install/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/home/ed/gnu/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/ed/gnu/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/ed/gnu/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/home/ed/gnu/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/home/ed/gnu/gcc-4.10-20140608/libstdc++-v3/libsupc++ -L/home/ed/gnu/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/ed/gnu/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.10-20140608/gcc -I../../gcc-4.10-20140608/gcc/. -I../../gcc-4.10-20140608/gcc/../include -I../../gcc-4.10-20140608/gcc/../libcpp/include -I/home/ed/gnu/gcc-build/./gmp -I/home/ed/gnu/gcc-4.10-20140608/gmp -I/home/ed/gnu/gcc-build/./mpfr -I/home/ed/gnu/gcc-4.10-20140608/mpfr -I/home/ed/gnu/gcc-4.10-20140608/mpc/src -I../../gcc-4.10-20140608/gcc/../libdecnumber -I../../gcc-4.10-20140608/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc-4.10-20140608/gcc/../libbacktrace -DCLOOG_INT_GMP -I/home/ed/gnu/gcc-build/./cloog/include -I/home/ed/gnu/gcc-4.10-20140608/cloog/include -I../gcc-4.10-20140608/cloog/include -I/home/ed/gnu/gcc-build/./isl/include -I/home/ed/gnu/gcc-4.10-20140608/isl/include -o fold-const.o -MT fold-const.o -MMD -MP -MF ./.deps/fold-const.TPo ../../gcc-4.10-20140608/gcc/fold-const.c -fdump-rtl-all-slim ../../gcc-4.10-20140608/gcc/fold-const.c: In function 'bool negate_mathfn_p(built_in_function)': ../../gcc-4.10-20140608/gcc/fold-const.c:353:1: internal compiler error: Segmentation fault } ^ 0xbeabcf crash_signal ../../gcc-4.10-20140608/gcc/toplev.c:337 0x11a41c0 pp_string(pretty_printer*, char const*) ../../gcc-4.10-20140608/gcc/pretty-print.c:906 0xb9ffc2 print_exp ../../gcc-4.10-20140608/gcc/sched-vis.c:391 0xba0afd print_value(pretty_printer*, rtx_def const*, int) ../../gcc-4.10-20140608/gcc/sched-vis.c:510 0xb9fb08 print_pattern(pretty_printer*, rtx_def const*, int) ../../gcc-4.10-20140608/gcc/sched-vis.c:620 0xb9f83b print_insn(pretty_printer*, rtx_def const*, int) ../../gcc-4.10-20140608/gcc/sched-vis.c:743 0xb9fa17 print_insn_with_notes ../../gcc-4.10-20140608/gcc/sched-vis.c:764 0xba0d4e dump_insn_slim(_IO_FILE*, rtx_def const*) ../../gcc-4.10-20140608/gcc/sched-vis.c:801 0x8a09f7 print_rtl_with_bb(_IO_FILE*, rtx_def const*, int) ../../gcc-4.10-20140608/gcc/cfgrtl.c:2196 0xb32e73 execute_function_dump ../../gcc-4.10-20140608/gcc/passes.c:1569 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. -fdump-rtl-all-all does not crash, but it produces a 36GB large fold-const.c.238r.vartrack file.