From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4523F3858C3A; Tue, 25 Jul 2023 10:18:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4523F3858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690280317; bh=GXZCrwXi9Lp1Q+o48iXIONjCAlVcaTxYB5Z5gEYL8CI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RahL9uBIN7YqV9y82lTT7TKn5MdR4bLd1O0RGFUTZNZBUk6bw71JeGtzah5fw9xyj F45nmMVz41DNP2wgfQexYPpLIAem/UcA6isFDrYr/T5ee/aKTlyrWbE0PcNR6rAuas C1D5YhTR5xhQsWm3C/jk/c0NGrs4Ul582Ftgg6P4= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110800] [gcn] ICE (segfault) 'during RTL pass: jump' in delete_trivially_dead_insns -> count_reg_usage when C++ exceptions are enabled + used Date: Tue, 25 Jul 2023 10:18:36 +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.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus 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: short_desc 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=3D110800 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[gcn] ICE (segfault) |[gcn] ICE (segfault) |'during RTL pass: jump' in |'during RTL pass: jump' in |delete_trivially_dead_insns |delete_trivially_dead_insns |-> count_reg_usage |-> count_reg_usage when C++ | |exceptions are enabled + | |used --- Comment #1 from Tobias Burnus --- The ICE is turned into plenty of linker errors (such as 'undefined symbol: operator delete[](void*)') when compiling with: -fno-exceptions It seems as if something goes wrong when exceptions are encountered. Still,= an ICE is wrong. For the sister testcase, test_target_struct_obj_access.cpp (same pull reque= st), it fails with tons of: cc45cyOP.mkoffload.2.s:2601:1: error: symbol '.LEHE1' is already defined That's actually how I found the -fno-exception as LEHE is added in gcc/except.cc: ASM_GENERATE_INTERNAL_LABEL (reg_start_lab, "LEHB", call_site_base + i); gcc/final.cc: ASM_OUTPUT_DEBUG_LABEL (asm_out_file, "LEHB",=