From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 27C56385040B; Sat, 22 Jul 2023 16:57:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 27C56385040B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690045070; bh=cMp18SZj6Otks9Htf+LKF3mRagQ8TbYWSMXG5jqtWtw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=i9ApZ2bt1Gj0xD/GAJZIEqABaL2SiR7hIHpXj1qQM4fq25LPEXLJjVrWcWztIVgCs bn6OLS6BPUZFm+wqBCuAxz6rxOpPYnY9NBgTa++a4udDK6otrvstf7Be4VjMXeCZzu 6Fvqf7vPpbZZhyVSTGqQyLkDPp422gfdb+nFbreY= From: "aurelien at aurel32 dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110066] [13/14 Regression] [RISC-V] Segment fault if compiled with -static -pg Date: Sat, 22 Jul 2023 16:57:44 +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.1.1 X-Bugzilla-Keywords: EH, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aurelien at aurel32 dot net 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: 13.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=3D110066 --- Comment #15 from Aurelien Jarno --- (In reply to Andrew Pinski from comment #14) > Created attachment 55614 [details] > patch for someone to test out >=20 > The problem is the similar across many targets so I basically copied what > was done for another target. Thanks for the patch, unfortunately it doesn't work as is. However, as comm= it 3cd08f7168c196d7a481b9ed9f4289fd1f14eea8 enabled both -fno-asynchronous-unwind-tables and -fno-unwind-tables, I have tried to add -fno-unwind-tables to riscv/t-crtstuff and that works.=