From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7847C385700F; Sat, 17 Feb 2024 02:17:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7847C385700F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708136260; bh=m8+ZuHxdr8N92Il3LNP4Xj4yU3+TmdzNGXysTd6buUU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IotAQUvx7+5zAfVcUsiYKwVqIfKqvwjAhG+DiPk52XylZRXb3+TdqXG/qdGxfmRtL AVPL6efCihtk/zX89eYcxd2ie1jcpLuybmc/Ld9rkxClDpGakuRTvf35ag90Fgasfl CA8Tg4wcvn2ztrdqMXLo/C+7zH4N/u4TuTkKOB6s= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113331] AMDGCN: Compilation failure due to duplicate .LEHB/.LEHE symbols Date: Sat, 17 Feb 2024 02:17:39 +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: openmp 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: cc 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=3D113331 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #2 from Tobias Burnus --- All of the following is in except.cc. The problem is that the count in the label is relative to 'call_site_base'. In convert_to_eh_region_ranges, those get bumped - but the function reset i= t at the end. They do get accumulated via, e.g., dw2_output_call_site_table but,= in GCN, the output_function_exception_table is exit early because of: 3229 if (!crtl->uses_eh_lsda 3230 || targetm_common.except_unwind_info (&global_options) =3D=3D UI_NONE) 3231 return; Thus, the next time convert_to_eh_region_ranges is called, it starts with t= he very same numbers. The reason that this gets produced is because there is an ERT_MUST_NOT_THROW ("MUST_NOT_THROW regions prevent all exceptions from propagating. This reg= ion type is used in C++ to surround destructors being run inside a CLEANUP region.") As there are both "-1" (implies no action) and "-2" (MUST_NOT_THROW), GCN produces this output. For whatever reason, nvptx has no "-1" actions in the function, thus, after the change to "-2", there is no flip and - hence, no output is produced - avoiding the issue. =E2=86=92 I bet that both gcn and nvptx are affected (unless luck or compil= ed with -fno-exceptions).=