From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 437F73858D3C; Sun, 12 May 2024 18:15:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 437F73858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715537726; bh=uS+fYYMRKXzmymS2zwpBNoOz7RCCBAch1E4fnCbUlhY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ykKiVk9tVLvpyONpKiyBf3dRaes9f3vNdwHOQZ1COY6Quk+Hj44PvrGGaeByd70Yu 8ArxB9eS4UW3tEwnG5OO4MqgtOTDvqdC3fMCfDGz5sf0WM1wgnhs6pLmuYwtWMndkw 81mooB+RWHF0z8taS4AN0U1G+GlEY4MLhZQpB/hs= From: "reiter.christoph at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115038] [14/15 regression] internal error in seh_cfa_offset with -O2 -fno-omit-frame-pointer Date: Sun, 12 May 2024 18:15:25 +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: 14.1.0 X-Bugzilla-Keywords: EH, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: reiter.christoph at gmail dot com 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: 14.2 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=3D115038 --- Comment #5 from Christoph Reiter --- Thanks! I can confirm that "-fno-fold-mem-offsets" works around the issue. = I'll test the proposed patch tomorrow. In the meantime we've reduced another instance of this when building emacs,= but this time with "simpler" C code and without -fno-omit-frame-pointer: ``` // gcc -c -O2 repro.c -> internal compiler error: in seh_cfa_offset // gcc -c -g3 -O2 -gdwarf-2 repro.c -> internal compiler error: in dwarf2out_frame_debug_expr void a() { __builtin_unwind_init(); } ``` Adding this here for completeness.=