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

            Bug ID: 70843
           Summary: ICE in add_expr, at tree.c:7913
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
  Target Milestone: ---

Created attachment 38358
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38358&action=edit
testcase

Hi,

Since commit r235507 (PR sanitizer/70683), I see ICEs on arm*-linux* targets
when building glibc.

$ arm-none-linux-gnueabihf-gcc llseek.i -c -std=gnu99 -fgnu89-inline  -O2 -Wall
-Winline -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g
-Wstrict-prototypes -S

../sysdeps/unix/sysv/linux/llseek.c: In function '__llseek':
../sysdeps/unix/sysv/linux/llseek.c:35:25: internal compiler error: in
add_expr, at tree.c:7913
        &retval, whence) ?: retval);
                         ^
0xd6e104 inchash::add_expr(tree_node const*, inchash::hash&, unsigned int)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/tree.c:7913
0xd6d6a5 inchash::add_expr(tree_node const*, inchash::hash&, unsigned int)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/tree.c:7990
0xd6d6a5 inchash::add_expr(tree_node const*, inchash::hash&, unsigned int)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/tree.c:7990
0xd6dc29 inchash::add_expr(tree_node const*, inchash::hash&, unsigned int)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/tree.c:7990
0x7d0322 operand_equal_p(tree_node const*, tree_node const*, unsigned int)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/fold-const.c:2760
0x7f5ed0 operand_equal_for_comparison_p
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/fold-const.c:3345
0x801385 fold_ternary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*, tree_node*)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/fold-const.c:11581
0x802721 fold_build3_stat_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*, tree_node*)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/fold-const.c:12582
0x5e155c c_fully_fold_internal
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c/c-fold.c:506
0x5e45da c_fully_fold(tree_node*, bool, bool*)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c/c-fold.c:90
0x586264 c_finish_return(unsigned int, tree_node*, tree_node*)
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c/c-typeck.c:9650
0x5cb2bc c_parser_statement_after_labels
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c/c-parser.c:5216
0x5cc53b c_parser_compound_statement_nostart
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c/c-parser.c:4858
0x5cce2e c_parser_compound_statement
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c/c-parser.c:4693
0x5ce300 c_parser_declaration_or_fndef
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c/c-parser.c:2105
0x5d79a6 c_parser_external_declaration
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c/c-parser.c:1549
0x5d84b9 c_parser_translation_unit
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c/c-parser.c:1430
0x5d84b9 c_parse_file()
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c/c-parser.c:17915
0x63c8d2 c_common_parse_file()
       
/home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk-for-crontab/gcc/c-family/c-opts.c:1064


GCC configured as:
--target=arm-none-linux-gnueabihf --with-float=hard --enable-build-with-cxx
--with-mode=arm --with-cpu=cortex-a9 --with-fpu=neon

Reply via email to