From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B76F73858D33; Fri, 31 Mar 2023 07:57:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B76F73858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680249453; bh=uWJGhn8vciDlCkvBUYvCWbhke5sjWQ+mI9g0pqb8E4U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TC5jnzhnnTuOx3xLRcGxaZN9it+Ebq0vLKXXKU0C8wtO/zMl1c08tux3SkC6qAKb7 6fOemlExpvX7jWmZU4xFtAiUUTNd7iP4EYyDwvkKVg2KOTuc+mOnlabgECCyrq/QaT zRqjVKEon6YolG6AeAcALRhEx+ntwOI6u7kyTHz0= From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/109231] [13 regression] Comparison failure in libphobos/libdruntime/rt/util/typeinfo.o Date: Fri, 31 Mar 2023 07:57:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109231 --- Comment #32 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #31 from Jakub Jelinek --- > If the important side-effect is allocation of some GC memory, then perhaps > (assuming you also see just 5 initialize_cfun calls with 2xint, TFmode fl= oat, > uint and bool) testing hack might be: I haven't verified this yet. > --- a/gcc/tree-inline.cc > +++ b/gcc/tree-inline.cc > @@ -2787,6 +2787,8 @@ initialize_cfun (tree new_fndecl, tree callee_fndec= l, > profile_count count) > /* Get clean struct function. */ > push_struct_function (new_fndecl, true); > targetm.target_option.relayout_function (new_fndecl); > + if (INTEGRAL_TYPE_P (TREE_TYPE (DECL_RESULT (new_fndecl)))) > + gen_raw_REG (GET_MODE (TYPE_MODE (DECL_RESULT (new_fndecl))), 8); > > /* We will rebuild these, so just sanity check that they are empty. */ > gcc_assert (VALUE_HISTOGRAMS (cfun) =3D=3D NULL); This doesn't compile as is: In file included from /var/gcc/reghunt/master/gcc/tree-inline.cc:26: /var/gcc/reghunt/master/gcc/tree-inline.cc: In function =E2=80=98void initialize_cfun(tree, tree, profile_count)=E2=80=99: /var/gcc/reghunt/master/gcc/rtl.h:728:54: error: base operand of =E2=80=98-= >=E2=80=99 is not a pointer 728 | #define GET_MODE(RTX) ((machine_mode) (RTX)->mode) | ^~ /var/gcc/reghunt/master/gcc/tree-inline.cc:2791:18: note: in expansion of m= acro =E2=80=98GET_MODE=E2=80=99 2791 | gen_raw_REG (GET_MODE (TYPE_MODE (DECL_RESULT (new_fndecl))), 8= ); | ^~~~~~~~=