public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111303] New: ICE: in type, at value-range.h:869
@ 2023-09-06  8:24 shaohua.li at inf dot ethz.ch
  2023-09-06  9:21 ` [Bug c/111303] " shaohua.li at inf dot ethz.ch
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: shaohua.li at inf dot ethz.ch @ 2023-09-06  8:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111303
           Summary: ICE: in type, at value-range.h:869
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: shaohua.li at inf dot ethz.ch
  Target Milestone: ---

gcc at -O2 crashes on the following test case.

Compiler explorer: https://godbolt.org/z/qK6dMTK14

$ cat a.c
unsigned char a;
int b(int c) {
  if (c >= 5000)
    return c / 5;
}
void d() { b(a - 5); }
int main() {}
$
$ gcc -O2 a.c
during GIMPLE pass: evrp
<source>: In function 'd':
<source>:7:1: internal compiler error: in type, at value-range.h:869
    7 | int main() {}
      | ^~~
0x21af71e internal_error(char const*, ...)
        ???:0
0x9dd814 fancy_abort(char const*, int, char const*)
        ???:0
0x16cada5 gimple_simplify_TRUNC_DIV_EXPR(gimple_match_op*, gimple**, tree_node*
(*)(tree_node*), code_helper, tree_node*, tree_node*, tree_node*)
        ???:0
0x180c22a gimple_match_op::resimplify(gimple**, tree_node* (*)(tree_node*))
        ???:0
0x180c880 gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node*
(*)(tree_node*), tree_node* (*)(tree_node*))
        ???:0
0x1f41940 gimple_ranger::fold_stmt(gimple_stmt_iterator*, tree_node*
(*)(tree_node*))
        ???:0
0x13c5478 rvrp_folder::fold_stmt(gimple_stmt_iterator*)
        ???:0
0x12a653e substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
        ???:0
0x1f09107 dom_walker::walk(basic_block_def*)
        ???:0
0x12a568b substitute_and_fold_engine::substitute_and_fold(basic_block_def*)
        ???:0
0x13c4f9c execute_ranger_vrp(function*, bool, bool)
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
$

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-09-18  2:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-06  8:24 [Bug c/111303] New: ICE: in type, at value-range.h:869 shaohua.li at inf dot ethz.ch
2023-09-06  9:21 ` [Bug c/111303] " shaohua.li at inf dot ethz.ch
2023-09-06 11:12 ` guojiufu at gcc dot gnu.org
2023-09-06 11:13 ` guojiufu at gcc dot gnu.org
2023-09-06 12:36 ` guojiufu at gcc dot gnu.org
2023-09-06 12:47 ` guojiufu at gcc dot gnu.org
2023-09-06 22:52 ` [Bug tree-optimization/111303] [14 Regression] " pinskia at gcc dot gnu.org
2023-09-09 16:03 ` pinskia at gcc dot gnu.org
2023-09-09 16:04 ` pinskia at gcc dot gnu.org
2023-09-13  1:32 ` cvs-commit at gcc dot gnu.org
2023-09-18  2:19 ` cvs-commit at gcc dot gnu.org
2023-09-18  2:31 ` guojiufu at gcc dot gnu.org
2023-09-18  2:38 ` guojiufu at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).