https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63289

            Bug ID: 63289
           Summary: ICE from --param max-vartrack-expr-depth
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: b3timmons at speedymail dot org
              Host: x86_64
            Target: x86_64
             Build: x86_64

Created attachment 33509
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33509&action=edit
preprocessed c source reduced by c-reduce and touched up by hand

gcc -v -B. -r -nostdlib -Wall -Wextra -g -O --param max-vartrack-expr-depth=54
testcase.i

gives

Using built-in specs.
COLLECT_GCC=/tmp/local2/bin/gcc
COLLECT_LTO_WRAPPER=/tmp/local2/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/tmp/local2 --with-mpfr=/tmp/local2
--with-gmp=/tmp/local2 --with-cloog=/tmp/local2 --with-mpc=/tmp/local2
--with-isl=/tmp/local2 --enable-languages=c,c++ --enable-__cxa_atexit
Thread model: posix
gcc version 5.0.0 20140830 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-B' '.' '-r' '-nostdlib' '-Wall' '-Wextra' '-g' '-O'
'--param' 'max-vartrack-expr-depth=54' '-mtune=generic' '-march=x86-64'
 /tmp/local2/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/cc1 -fpreprocessed
testcase.i -quiet -dumpbase testcase.i -mtune=generic -march=x86-64 -auxbase
testcase -g -O -Wall -Wextra -version --param max-vartrack-expr-depth=54 -o
/tmp/ccLuuxHP.s
GNU C (GCC) version 5.0.0 20140830 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 5.0.0 20140830 (experimental), GMP version
6.0.0, MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C (GCC) version 5.0.0 20140830 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 5.0.0 20140830 (experimental), GMP version
6.0.0, MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: bdbca1d9afdd549def5a1fba0cffe738
gcc: internal compiler error: Segmentation fault (program cc1)
0x40d24c execute
        ../../gcc/gcc/gcc.c:2900
0x40d479 do_spec_1
        ../../gcc/gcc/gcc.c:4704
0x40fe79 process_brace_body
        ../../gcc/gcc/gcc.c:5987
0x40fe79 handle_braces
        ../../gcc/gcc/gcc.c:5901
0x40dfd7 do_spec_1
        ../../gcc/gcc/gcc.c:5358
0x40fe79 process_brace_body
        ../../gcc/gcc/gcc.c:5987
0x40fe79 handle_braces
        ../../gcc/gcc/gcc.c:5901
0x40dfd7 do_spec_1
        ../../gcc/gcc/gcc.c:5358
0x40d903 do_spec_1
        ../../gcc/gcc/gcc.c:5473
0x40fe79 process_brace_body
        ../../gcc/gcc/gcc.c:5987
0x40fe79 handle_braces
        ../../gcc/gcc/gcc.c:5901
0x40dfd7 do_spec_1
        ../../gcc/gcc/gcc.c:5358
0x40fe79 process_brace_body
        ../../gcc/gcc/gcc.c:5987
0x40fe79 handle_braces
        ../../gcc/gcc/gcc.c:5901
0x40dfd7 do_spec_1
        ../../gcc/gcc/gcc.c:5358
0x40fe79 process_brace_body
        ../../gcc/gcc/gcc.c:5987
0x40fe79 handle_braces
        ../../gcc/gcc/gcc.c:5901
0x40dfd7 do_spec_1
        ../../gcc/gcc/gcc.c:5358
0x40fe79 process_brace_body
        ../../gcc/gcc/gcc.c:5987
0x40fe79 handle_braces
        ../../gcc/gcc/gcc.c:5901
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.

Also fails with gcc (Debian 4.7.2-5) 4.7.2 .

Reply via email to