From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ADB793857735; Wed, 17 May 2023 23:36:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADB793857735 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684366609; bh=Soaesj1xyL1s9edjPzog12BiaxRZQ5Yv+YzG0aTMjiU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oz0DBrM5DP7Mx314003Z+YUvOejpJohhyNVnavdnYjTso0y7HFSTxL7qgfzDoUAOC MGYUermWHn6rqwqKA1o5XJ0+O+cTAyWt9/FY246IepgIWwb18e9Q5DpA8m/j0sQ5xL 3bbuhoNTj/KuCBulFw/Ocy+h9JX1lmG0D2B1oSM4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/105910] __builtin_return_address expansion with a large # causes a compile time issues and even ICEs sometimes Date: Wed, 17 May 2023 23:36:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: compile-time-hog, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: cf_known_to_fail short_desc component 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=3D105910 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |4.1.2 Summary|ICE: with -O1 optimization |__builtin_return_address |level and code calling |expansion with a large # |__builtin_return_address |causes a compile time | |issues and even ICEs | |sometimes Component|rtl-optimization |middle-end --- Comment #4 from Andrew Pinski --- Instead of producing 524288 instructions, I suspect we could expand that as= a loop and such.=