From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4B8CD385841B; Sat, 22 Jul 2023 14:50:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B8CD385841B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690037455; bh=M4t9gYj8u4D5zOuyACH6PqXaEXbNk+pKRVErMD41tAk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SLSeRd4JSOR4g25OBb+ICOF4vS5AOV62vvqwkj+tk971OSWpDKjGPIenQm97WXXBf R8Q//5SMi9pcL3aivn0wofuKwsg8z+mskQstCMBBaLezwhenGCUN5uD54LfGT8KKGn icLkAA8Re7WTO4Vbf2iciY4VwR5s1VmVYXAsyeBM= From: "aurelien at aurel32 dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110066] [RISC-V] Segment fault if compiled with -static -pg Date: Sat, 22 Jul 2023 14:50:54 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: aurelien at aurel32 dot net 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: 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 #11 from Aurelien Jarno --- I have bisected the issue, and I found it has been introduced by the follow= ing commit: commit 3cd08f7168c196d7a481b9ed9f4289fd1f14eea8 Author: Andreas Schwab Date: Wed Jan 25 12:00:09 2023 +0100 riscv: Enable -fasynchronous-unwind-tables by default on Linux This follows the example of aarch64. gcc/: * common/config/riscv/riscv-common.cc (riscv_option_optimization_table) [TARGET_DEFAULT_ASYNC_UNWIND_TABLES]: Enable -fasynchronous-unwind-tables and -funwind-tables. * config.gcc (riscv*-*-linux*): Define TARGET_DEFAULT_ASYNC_UNWIND_TABLES.=