From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E29F03858C27; Sat, 22 Jul 2023 17:02:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E29F03858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690045328; bh=JG60tflaxiSxqxfXoYG/JDJapeLgGRc5Hlwuft2AzJg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UMsbFbKo1gGGOezowA70kePVBUWoA6SA9Ho7UCPRFPC6ZyQ0CvgZgn/1K6Ag/pLtX wuYZ5q6nfxmlv/0UXNzAtgKniv8Uo3sfyWgGDwLva0aLZA9s4/DQKfkr6YQIX38Nmn 5VROXhpQ0Bkv6yXAGPwJqZlYfr9Hk5iuwKAjrXOo= From: "pinskia at gcc dot gnu.org" 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 17:02:08 +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: pinskia 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: 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 #16 from Andrew Pinski --- (In reply to Aurelien Jarno from comment #15) > (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 wh= at > > was done for another target. >=20 > Thanks for the patch, unfortunately it doesn't work as is. However, as > commit 3cd08f7168c196d7a481b9ed9f4289fd1f14eea8 enabled both > -fno-asynchronous-unwind-tables and -fno-unwind-tables, I have tried to a= dd > -fno-unwind-tables to riscv/t-crtstuff and that works. Ok, I will add -fno-unwind-tables and submit the patch then. Thanks for tes= ting the patch and improving it.=