From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C485F385782F; Tue, 22 Sep 2020 06:10:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C485F385782F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600755004; bh=C9TRiUe07m587ypr+SuU9IukUs6NgEh4N9zZysIRx6Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tGvRSv3l3lIEcX7grecRgCG1J1XU4W4uHCWrWI9fuXOG3j5cVYt/Zq+VZ+bcoNxbP kIrsSdhPU/0vqqjoJUJ9BzzppMm6k6NlLI10UVMBtnk360+cJsrSQ+s5A/sZ/7uIvS 98hIogiexJ10eDnPJMLLGcfTu9jsABoKUTUKRwMc= From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97102] [nvptx] PTX JIT compilation failed when using aliases Date: Tue, 22 Sep 2020 06:10:04 +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: 11.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2020 06:10:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97102 --- Comment #4 from Tom de Vries --- (In reply to Tobias Burnus from comment #2) > Created attachment 49239 [details] > Draft patch >=20 > PTX ISA Notes > .alias directive introduced in PTX ISA 6.3. >=20 > Thus, it does not work everywhere :-( >=20 > Patch =E2=80=93 I did bump '.version' - but that probably has more side e= ffects than > desirable. This patch does manage to complete a build, but tests (both standalone and libgomp) using alias fail with "unresolved symbol". This is because it cal= ls write_fn_proto which generates a linker marker for the alias, which makes t= he linker think there's such a function, and when it cannot find it, it genera= tes an "unresolved symbol" error.=