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

            Bug ID: 93663
           Summary: [10 Regression] ICE in is_halfway_below, at
                    real.c:5192
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Changed between 20190825 and 20190901 :


$ cat z1.c
void f() {roundeven(0x0.1p1128);}


$ gcc-10-20200209 -c z1.c -O2
z1.c: In function 'f':
z1.c:1:11: warning: implicit declaration of function 'roundeven'
[-Wimplicit-function-declaration]
    1 | void f() {roundeven(0x0.1p1128);}
      |           ^~~~~~~~~
z1.c:1:11: warning: incompatible implicit declaration of built-in function
'roundeven'
z1.c:1:1: warning: floating constant exceeds range of 'double' [-Woverflow]
    1 | void f() {roundeven(0x0.1p1128);}
      | ^~~~
z1.c:1:1: internal compiler error: in is_halfway_below, at real.c:5192
0xc23e0b is_halfway_below(real_value const*)
        ../../gcc/real.c:5192
0xc23e24 real_roundeven(real_value*, format_helper, real_value const*)
        ../../gcc/real.c:5226
0x95c8fd fold_const_call_ss
        ../../gcc/fold-const-call.c:877
0x95ea12 fold_const_call_1
        ../../gcc/fold-const-call.c:1213
0x78c957 fold_builtin_1
        ../../gcc/builtins.c:10043
0x78c957 fold_builtin_n
        ../../gcc/builtins.c:10332
0x959a31 fold(tree_node*)
        ../../gcc/fold-const.c:12690
0x6d9a5c c_fully_fold_internal
        ../../gcc/c/c-fold.c:626
0x6dd417 c_fully_fold(tree_node*, bool, bool*, bool)
        ../../gcc/c/c-fold.c:125
0x670201 c_process_expr_stmt(unsigned int, tree_node*)
        ../../gcc/c/c-typeck.c:11095
0x6705ed c_finish_expr_stmt(unsigned int, tree_node*)
        ../../gcc/c/c-typeck.c:11140
0x6ca18a c_parser_statement_after_labels
        ../../gcc/c/c-parser.c:6294
0x6cc340 c_parser_compound_statement_nostart
        ../../gcc/c/c-parser.c:5800
0x6ccaf6 c_parser_compound_statement
        ../../gcc/c/c-parser.c:5616
0x6ce431 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2504
0x6d8237 c_parser_external_declaration
        ../../gcc/c/c-parser.c:1746
0x6d8d59 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1619
0x6d8d59 c_parse_file()
        ../../gcc/c/c-parser.c:21710
0x73df70 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1186

Reply via email to