From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 48C33384CBAD; Fri, 12 Jan 2024 09:52:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48C33384CBAD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705053160; bh=5ClpjBeqqixJSks99l4hakzwGnXUMqfZv33I5VUcKPU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=K+RurEaiAjTf8PM9FPstmrZDPoJpX5KEp40DYdhsij0nkRY7CUIwf7yxr5Z7tlteX fSwnsSrCTvDYmL33SeEzXC3KJwvo7ttt/DxX8WlSeqAmM3IBUjqfkGANDXMicVe6pq EhIsvbRTaot+k3idOC0hdjOzSElsevXUK/ZX8ew4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/113284] [14 regression] many failures in asan after r14-6946-ge66dc37b299cac Date: Fri, 12 Jan 2024 09:52:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 14.0 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=3D113284 --- Comment #8 from GCC Commits --- The master branch has been updated by Ilya Leoshkevich : https://gcc.gnu.org/g:d8c1361220ba7617adf4ccc396499f6393ec223e commit r14-7176-gd8c1361220ba7617adf4ccc396499f6393ec223e Author: Ilya Leoshkevich Date: Tue Jan 9 11:40:14 2024 +0100 rs6000: Fix ASAN linker errors for Power ELF V1 ABI [PR113284] rs6000_elf_declare_function_name () outputs Power ELF V1 ABI function entry labels without using ASM_OUTPUT_FUNCTION_LABEL (). As a result, .LASANPC labels are not emitted, causing linker errors. In theory, it is possible to reuse ASM_OUTPUT_FUNCTION_LABEL () by changing rs6000_output_function_entry () to generate label names without outputting them, but this would be quite a large change. Instead, factor out the .LASANPC emitting code from ASM_OUTPUT_FUNCTION_LABEL () and call it manually. Fixes: c659dd8bfb55 ("Implement ASM_DECLARE_FUNCTION_NAME using ASM_OUTPUT_FUNCTION_LABEL") Suggested-by: Jakub Jelinek Signed-off-by: Ilya Leoshkevich gcc/ChangeLog: PR sanitizer/113284 * config/rs6000/rs6000.cc (rs6000_elf_declare_function_name): Use assemble_function_label_final () for Power ELF V1 ABI. * output.h (assemble_function_label_final): New function. * varasm.cc (assemble_function_label_raw): Use assemble_function_label_final (). (assemble_function_label_final): New function.=