From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DF1163857700; Fri, 15 Sep 2023 13:11:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF1163857700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694783470; bh=OmtEFj9xaaU9uaAo7DttGnEqhDMgMvBupj/8WeOxRcY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Tf4V1X+mLHyyAdgKtePAarJ9bC2ZHb44g1EruEmd1d6qbarocxUumvO9y3vgxsQan osOtwKAWA2ArBrYukbo2BnT/FxapKNCjXWq13cKwJCmCBMlMpMemNtIayBBQ8YScj0 iP/ZtPWMuRESEPDWZg/RcXK1zzGPPMcdpSJWVDbI= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111425] ia64: ICE in net/ipv4/fib_semantics.c:1621:1: internal compiler error: Segmentation fault Date: Fri, 15 Sep 2023 13:11:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111425 --- Comment #3 from Richard Biener --- Reduced testcase: enum { REFCOUNT_ADD_NOT_ZERO_OVF } refcount_warn_saturate(); int refcount_inc_not_zero_old, fib_info_num_path___trans_tmp_11, rtnh_ok_remaining, fib_create_info_nexthop_nh_0, fib_create_info_fi; struct rtnexthop { short rtnh_len; } fib_count_nexthops_rtnh; struct nexthop *nh; void atomic_read(int *v) { *(volatile typeof(_Generic(0, default : 0)) *)v;= } typedef struct { int refs; } refcount_t; void refcount_inc_not_zero(refcount_t *r) { _Bool __trans_tmp_13; atomic_read(&r->refs); while (!__trans_tmp_13) if (__builtin_expect(refcount_inc_not_zero_old, 0)) refcount_warn_saturate(); } struct nexthop { refcount_t refcnt; }; int fib_info_num_path() { if (__builtin_expect(!nh, 0)) return fib_info_num_path___trans_tmp_11; } int rtnh_ok(struct rtnexthop *rtnh) { return rtnh_ok_remaining && rtnh->rtnh_len <=3D rtnh_ok_remaining; } void fib_create_info() { struct rtnexthop __trans_tmp_12; while (rtnh_ok(&fib_count_nexthops_rtnh)) fib_count_nexthops_rtnh =3D __trans_tmp_12; if (nh) refcount_inc_not_zero(&nh->refcnt); for (; fib_info_num_path();) fib_create_info_nexthop_nh_0 =3D fib_create_info_fi; }=