Hi: I encountered an ICE when developing _Float16 patches, .gcc/xgcc -B ./gcc -O2 ./../../gcc/upstream/independentfp16/gcc/testsuite/gcc.dg/torture/float16-basic.c -flto I try to use -v, and got below, which component should I gdb where i can set breakpoints to convert_mode_scalar eading specs from /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/specs COLLECT_GCC=/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/xgcc COLLECT_LTO_WRAPPER=/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /export/users2/liuhongt/gcc/upstream/independentfp16/configure --disable-bootstrap --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-libsanitizer --prefix=/export/users2/liuhongt/install/upstream_independentfp16_debug Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210622 (experimental) (GCC) COLLECT_GCC_OPTIONS='-B' '/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc' '-O2' '-flto' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-' /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/cc1 -E -quiet -v -iprefix /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/../lib/gcc/x86_64-pc-linux-gnu/12.0.0/ -isystem /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/include -isystem ./gcc/include -isystem /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/include-fixed -isystem ./gcc/include-fixed /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/../../gcc/upstream/independentfp16/gcc/testsuite/gcc.dg/torture/float16-basic.c -mtune=generic -march=x86-64 -flto -O2 -fpch-preprocess -o a-float16-basic.i ignoring duplicate directory "./gcc/include" ignoring duplicate directory "./gcc/include-fixed" ignoring nonexistent directory "/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/../lib/gcc/x86_64-pc-linux-gnu/12.0.0/include" ignoring nonexistent directory "/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/../lib/gcc/x86_64-pc-linux-gnu/12.0.0/include-fixed" ignoring nonexistent directory "/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/../lib/gcc/x86_64-pc-linux-gnu/12.0.0/../../../../x86_64-pc-linux-gnu/include" ignoring nonexistent directory "/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.0.0/include" ignoring nonexistent directory "/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/../lib/gcc/../../include" ignoring nonexistent directory "/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.0.0/include-fixed" ignoring nonexistent directory "/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.0.0/../../../../x86_64-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/include /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/include-fixed /usr/local/include /usr/include End of search list. COLLECT_GCC_OPTIONS='-B' '/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc' '-O2' '-flto' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-' /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/cc1 -fpreprocessed a-float16-basic.i -quiet -dumpdir a- -dumpbase float16-basic.c -dumpbase-ext .c -mtune=generic -march=x86-64 -O2 -version -flto -o a-float16-basic.s GNU C17 (GCC) version 12.0.0 20210622 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 12.0.0 20210622 (experimental), GMP version 6.1.0, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C17 (GCC) version 12.0.0 20210622 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 12.0.0 20210622 (experimental), GMP version 6.1.0, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 97271481e038d548b1d8be64fbbf8dcc COLLECT_GCC_OPTIONS='-B' '/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc' '-O2' '-flto' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-' /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/as -v --64 -o a-float16-basic.o a-float16-basic.s GNU assembler version 2.36.50 (x86_64-pc-linux-gnu) using BFD version (GNU Binutils) 2.36.50.20210426 COMPILER_PATH=/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/:./gcc/ LIBRARY_PATH=/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/:/lib/../lib64/../lib64/:/usr/lib/../lib64/../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/lib/../lib64/:/usr/lib/../lib64/:./gcc/:/lib/../lib64/:/usr/lib/../lib64/:/lib/:/usr/lib/:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-B' '/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc' '-O2' '-flto' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a.' /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/collect2 -plugin /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/liblto_plugin.so -plugin-opt=/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/lto-wrapper -plugin-opt=-fresolution=a.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -flto --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 /lib/../lib64/../lib64/crt1.o /lib/../lib64/../lib64/crti.o /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/crtbegin.o -L/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc -L/lib/../lib64/../lib64 -L/usr/lib/../lib64/../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L./gcc -L/lib/../lib64 -L/usr/lib/../lib64 a-float16-basic.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/crtend.o /lib/../lib64/../lib64/crtn.o /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/lto-wrapper -fresolution=a.res -flinker-output=exec a-float16-basic.o /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/lto-wrapper -fresolution=a.res -flinker-output=exec a-float16-basic.o /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/xgcc @./a.ltrans_args Reading specs from /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/specs COLLECT_GCC=/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/xgcc Target: x86_64-pc-linux-gnu Configured with: /export/users2/liuhongt/gcc/upstream/independentfp16/configure --disable-bootstrap --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-libsanitizer --prefix=/export/users2/liuhongt/install/upstream_independentfp16_debug Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210622 (experimental) (GCC) COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fno-pie' '-fcf-protection=none' '-O2' '-B' '/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc' '-O2' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' '-fltrans-output-list=./a.ltrans.out' '-fwpa' '-fresolution=a.res' '-flinker-output=exec' /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/lto1 -quiet -dumpbase ./a.wpa -mtune=generic -march=x86-64 -O2 -O2 -version -fno-openmp -fno-openacc -fno-pie -fcf-protection=none -fltrans-output-list=./a.ltrans.out -fwpa -fresolution=a.res -flinker-output=exec @./a.wpa.args.0 GNU GIMPLE (GCC) version 12.0.0 20210622 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 12.0.0 20210622 (experimental), GMP version 6.1.0, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU GIMPLE (GCC) version 12.0.0 20210622 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 12.0.0 20210622 (experimental), GMP version 6.1.0, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 COMPILER_PATH=/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/:/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/:./gcc/ LIBRARY_PATH=/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/:/lib/../lib64/../lib64/../lib64/:/usr/lib/../lib64/../lib64/../lib64/:/lib/../lib64/../lib64/:/usr/lib/../lib64/../lib64/:/lib/../lib64/../lib64/:/usr/lib/../lib64/../lib64/:/lib/../lib64/../lib64/:/usr/lib/../lib64/../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/:/lib/../lib64/../lib64/:/usr/lib/../lib64/../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/lib/../lib64/:/usr/lib/../lib64/:./gcc/:/lib/../lib64/:/usr/lib/../lib64/:/lib/:/usr/lib/:/lib/:/usr/lib/:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fno-pie' '-fcf-protection=none' '-O2' '-B' '/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc' '-O2' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' '-fltrans-output-list=./a.ltrans.out' '-fwpa' '-fresolution=a.res' '-flinker-output=exec' '-dumpdir' './a.wpa.' [Leaving LTRANS ./a.ltrans.out] /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/xgcc @./a.ltrans0.ltrans_args Reading specs from /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/specs COLLECT_GCC=/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/xgcc Target: x86_64-pc-linux-gnu Configured with: /export/users2/liuhongt/gcc/upstream/independentfp16/configure --disable-bootstrap --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-libsanitizer --prefix=/export/users2/liuhongt/install/upstream_independentfp16_debug Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210622 (experimental) (GCC) COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fno-pie' '-fcf-protection=none' '-O2' '-B' '/export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc' '-O2' '-save-temps' '-v' '-mtune=generic' '-march=x86-64' '-fltrans' '-o' './a.ltrans0.ltrans.o' /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/lto1 -quiet -dumpbase ./a.ltrans0.ltrans -mtune=generic -march=x86-64 -O2 -O2 -version -fno-openmp -fno-openacc -fno-pie -fcf-protection=none -fltrans @./a.ltrans0.ltrans.args.0 -o ./a.ltrans0.ltrans.s GNU GIMPLE (GCC) version 12.0.0 20210622 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 12.0.0 20210622 (experimental), GMP version 6.1.0, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU GIMPLE (GCC) version 12.0.0 20210622 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 12.0.0 20210622 (experimental), GMP version 6.1.0, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.18-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 during RTL pass: expand /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/../../gcc/upstream/independentfp16/gcc/testsuite/gcc.dg/torture/floatn-basic.h: In function ‘vafn’: /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/../../gcc/upstream/independentfp16/gcc/testsuite/gcc.dg/torture/floatn-basic.h:36:7: internal compiler error: Segmentation fault 36 | ret = arg1 + va_arg (ap, TYPE); | ^ 0x12bb92d crash_signal /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/toplev.c:327 0xdc9a79 aggregate_value_p(tree_node const*, tree_node const*) /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/function.c:2056 0xb42799 emit_library_call_value_1(int, rtx_def*, rtx_def*, libcall_type, machine_mode, int, std::pair<rtx_def*, machine_mode>*) /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/calls.c:5207 0xcea0f3 emit_library_call_value(rtx_def*, rtx_def*, libcall_type, machine_mode, rtx_def*, machine_mode) /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/rtl.h:4377 0xd0aaf8 convert_mode_scalar /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/expr.c:356 0xd0a695 convert_move(rtx_def*, rtx_def*, int) /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/expr.c:298 0xd3281b expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/expr.c:9006 0xb65765 expand_gimple_stmt_1 /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/cfgexpand.c:3980 0xb659fb expand_gimple_stmt /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/cfgexpand.c:4041 0xb6efe5 expand_gimple_basic_block /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/cfgexpand.c:6083 0xb71a35 execute /export/users2/liuhongt/gcc/upstream/independentfp16/gcc/cfgexpand.c:6809 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. lto-wrapper: fatal error: /export/users2/liuhongt/tools-build/build_upstream_independentfp16_debug/gcc/xgcc returned 1 exit status compilation terminated. [Leaving LTRANS ./a.ltrans0.o] /export/users2/liuhongt/install/binutils_trunk/bin/ld: error: lto-wrapper failed [Leaving a.lto_wrapper_args] collect2: error: ld returned 1 exit status -- BR, Hongtao