http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57104
Bug #: 57104 Summary: ICE: in expand_expr_addr_expr_1, at expr.c:7594 with -fsanitize=thread and hardreg variable Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz CC: do...@gcc.gnu.org, dvyu...@gcc.gnu.org, ja...@gcc.gnu.org, k...@gcc.gnu.org Created attachment 29965 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29965 reduced testcase Compiler output: $ gcc -fsanitize=thread testcase.c testcase.c: In function 'foo': testcase.c:6:12: internal compiler error: in expand_expr_addr_expr_1, at expr.c:7594 data_0 + data_3; ^ 0x79a535 expand_expr_addr_expr_1 /mnt/svn/gcc-trunk/gcc/expr.c:7594 0x78cbe9 expand_expr_addr_expr /mnt/svn/gcc-trunk/gcc/expr.c:7703 0x78cbe9 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**) /mnt/svn/gcc-trunk/gcc/expr.c:10436 0x6877cd expand_normal /mnt/svn/gcc-trunk/gcc/expr.h:450 0x6877cd precompute_register_parameters /mnt/svn/gcc-trunk/gcc/calls.c:821 0x6877cd expand_call(tree_node*, rtx_def*, int) /mnt/svn/gcc-trunk/gcc/calls.c:3013 0x66c364 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /mnt/svn/gcc-trunk/gcc/builtins.c:6868 0x78b097 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**) /mnt/svn/gcc-trunk/gcc/expr.c:10207 0x69c9a5 expand_call_stmt /mnt/svn/gcc-trunk/gcc/cfgexpand.c:2119 0x69c9a5 expand_gimple_stmt_1 /mnt/svn/gcc-trunk/gcc/cfgexpand.c:2157 0x69c9a5 expand_gimple_stmt /mnt/svn/gcc-trunk/gcc/cfgexpand.c:2309 0x69d74d expand_gimple_basic_block /mnt/svn/gcc-trunk/gcc/cfgexpand.c:4143 0x69f7bc gimple_expand_cfg /mnt/svn/gcc-trunk/gcc/cfgexpand.c:4662 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 -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-198366-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-198366-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.9.0 20130428 (experimental) (GCC) Tested revisions: r198366 - crash 4.8 r198018 - crash