[Bug middle-end/82319] New: ICE in generic_simplify_148, at generic-match.c:6436 on arm-linux-gnueabi-gcc

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 25 08:17:00 GMT 2017


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

            Bug ID: 82319
           Summary: ICE in generic_simplify_148, at generic-match.c:6436
                    on arm-linux-gnueabi-gcc
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: arm-linux-gnueabi-gcc

Using cross-compiler, I see:

$ cat i.c
short nonfinite_x;
void nonfinite() {
  nonfinite_x == __builtin_nanf("0");
}

$ arm-linux-gnueabi-gcc /tmp/i.c -fsignaling-nans
/tmp/i.c: In function ‘nonfinite’:
/tmp/i.c:3:3: internal compiler error: in generic_simplify_148, at
generic-match.c:6436
   nonfinite_x == __builtin_nanf("0");
   ^~~~~~~~~~~
0xfb38d5 generic_simplify_148
       
/home/marxin/BIG/buildbot/slave/gcc-master-build-arm-weekend/build/builddir/gcc/generic-match.c:6436
0xff758c generic_simplify_EQ_EXPR
       
/home/marxin/BIG/buildbot/slave/gcc-master-build-arm-weekend/build/builddir/gcc/generic-match.c:33772
0xffe0fd generic_simplify(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
       
/home/marxin/BIG/buildbot/slave/gcc-master-build-arm-weekend/build/builddir/gcc/generic-match.c:38305
0x850265 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        .././../gcc/fold-const.c:9144
0x85a9fa fold_build2_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        .././../gcc/fold-const.c:12272
0x62e99b c_fully_fold_internal
        .././../gcc/c/c-fold.c:303
0x6308e3 c_fully_fold(tree_node*, bool, bool*)
        .././../gcc/c/c-fold.c:89
0x5c9a8f c_process_expr_stmt(unsigned int, tree_node*)
        .././../gcc/c/c-typeck.c:10625
0x5c9e7d c_finish_expr_stmt(unsigned int, tree_node*)
        .././../gcc/c/c-typeck.c:10670
0x61da2d c_parser_statement_after_labels
        .././../gcc/c/c-parser.c:5586
0x61f9d4 c_parser_compound_statement_nostart
        .././../gcc/c/c-parser.c:5098
0x620110 c_parser_compound_statement
        .././../gcc/c/c-parser.c:4931
0x61bab4 c_parser_declaration_or_fndef
        .././../gcc/c/c-parser.c:2291
0x623fe3 c_parser_external_declaration
        .././../gcc/c/c-parser.c:1634
0x624a69 c_parser_translation_unit
        .././../gcc/c/c-parser.c:1515
0x624a69 c_parse_file()
        .././../gcc/c/c-parser.c:18388
0x684e96 c_common_parse_file()
        .././../gcc/c-family/c-opts.c:1113


More information about the Gcc-bugs mailing list