public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107937] New: ice in find_var_cmp_const, at gimple-predicate-analysis.cc:257
@ 2022-11-30 17:17 dcb314 at hotmail dot com
  2022-11-30 17:19 ` [Bug tree-optimization/107937] [13 Regression] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: dcb314 at hotmail dot com @ 2022-11-30 17:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107937
           Summary: ice in find_var_cmp_const, at
                    gimple-predicate-analysis.cc:257
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

This reduced C code:

double getk_intersect_line_with_ycylinder_r,
    getk_intersect_line_with_ycylinder_a;
getk_intersect_line_with_ycylinder_i;
getk_intersect_line_with_ycylinder(double *k2) {
  if (getk_intersect_line_with_ycylinder_r < 0.)
    return sqrt(getk_intersect_line_with_ycylinder_r);
  *k2 = 0 / getk_intersect_line_with_ycylinder_a;
  {
    double k2;
    for (; getk_intersect_line_with_ycylinder_i;
         getk_intersect_line_with_ycylinder_i++)
      getk_intersect_line_with_ycylinder(&k2);
    vecscale(k2);
  }
}

when compiled by recent gcc trunk and compiler flags -O3 -Wall, does this:

during GIMPLE pass: uninit
bug865.c:4:1: internal compiler error: in find_var_cmp_const, at
gimple-predicate-analysis.cc:257
    4 | getk_intersect_line_with_ycylinder(double *k2) {
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x1b3ad6c find_var_cmp_const(vec<vec<pred_info, va_heap, vl_ptr>, va_heap,
vl_ptr>, gphi*, gimple**, tree_node**)
        ../../trunk.d1/gcc/gimple-predicate-analysis.cc:257
0x1b3ad6c uninit_analysis::overlap(gphi*, unsigned int, hash_set<gphi*, false,
default_hash_traits<gphi*> >*, predicate const&)
        ../../trunk.d1/gcc/gimple-predicate-analysis.cc:648

I'll have a go at finding a git range for the problem.

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

end of thread, other threads:[~2022-12-01 14:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 17:17 [Bug c/107937] New: ice in find_var_cmp_const, at gimple-predicate-analysis.cc:257 dcb314 at hotmail dot com
2022-11-30 17:19 ` [Bug tree-optimization/107937] [13 Regression] " pinskia at gcc dot gnu.org
2022-11-30 17:23 ` pinskia at gcc dot gnu.org
2022-11-30 17:26 ` pinskia at gcc dot gnu.org
2022-11-30 17:29 ` dcb314 at hotmail dot com
2022-11-30 17:33 ` pinskia at gcc dot gnu.org
2022-12-01  5:24 ` [Bug tree-optimization/107937] [13 Regression] ICE in find_var_cmp_const, at gimple-predicate-analysis.cc:257 since r13-4408-gb628cad9e093f7a3 marxin at gcc dot gnu.org
2022-12-01  5:28 ` marxin at gcc dot gnu.org
2022-12-01  7:34 ` rguenth at gcc dot gnu.org
2022-12-01  8:38 ` zhendong.su at inf dot ethz.ch
2022-12-01  9:54 ` cvs-commit at gcc dot gnu.org
2022-12-01 14:00 ` rguenth 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).