From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5229A3857020; Wed, 16 Dec 2020 09:16:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5229A3857020 From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/97750] [11 Regression] ICE in during GIMPLE pass: wrestrict since r11-4135-ge864d395b4e862ce Date: Wed, 16 Dec 2020 09:16:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2020 09:16:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97750 --- Comment #6 from Sergei Trofimovich --- Peeking at the gdb backtrace: #0 operator_cast::op1_range (this=3D0x2e23ac0 , r=3D..., type=3D0x7ffff7676c78, lhs=3D..., op2=3D...) at ../../gcc/gcc/range-op.cc:1= 881 #1 0x0000000001f7195e in gimple_range_calc_op1 (r=3D..., stmt=3D0x7ffff77c= 55a0, lhs_range=3D..., op2_range=3D...) at ../../gcc/gcc/gimple-range.cc:337 #2 0x0000000001f817e2 in gori_compute::compute_name_range_op (this=3D0x7fffffffd010, r=3D..., stmt=3D0x7ffff77c55a0, lhs=3D..., name=3D0= x7ffff77b37e0) at ../../gcc/gcc/gimple-range-gori.cc:507 #3 0x0000000001f81c10 in gori_compute::compute_operand_range (this=3D0x7fffffffd010, r=3D..., stmt=3D0x7ffff77c55a0, lhs=3D..., name=3D0= x7ffff77b37e0) at ../../gcc/gcc/gimple-range-gori.cc:607 range_op_handler (PLUS_EXPR, type)->fold_range (lhs_neg, type, converted_lhs, lim_range); (gdb) list range_op_handler 3420 3421 // The tables are hidden and accessed via a simple extern function. 3422 3423 range_operator * 3424 range_op_handler (enum tree_code code, tree type) 3425 { 3426 // First check if there is a pointer specialization. 3427 if (POINTER_TYPE_P (type)) 3428 return pointer_tree_table[code]; 3429 if (INTEGRAL_TYPE_P (type)) 3430 return integral_tree_table[code]; 3431 return NULL; 3432 } (gdb) call range_op_handler (PLUS_EXPR, type) $2 =3D (range_operator *) 0x0 (gdb) call debug_generic_expr(type) char * (gdb) call POINTER_TYPE_P(type) $7 =3D true=