From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B0F7385E459; Thu, 1 Feb 2024 20:10:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B0F7385E459 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706818251; bh=Mtp84z2jj3Sc05/cfjsSfnSHnsgBO+fFPtV87AlqE2U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F0A+GZsJ5xsuBkAjyk4X491TAGwVOzhxf4b+F3SAmCCFB+Uqlur45VCz6oslWmuTs TikBzYWFnZZD9RXxkGLz+IHOOq7lyopMmvgIeX7D09qYJ5YfXzRg599ZxTDdBkt8vP snsb+CUyoqGVBOnGoLQsVFmHEEhQw8nUGT9yHfEw= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/113402] Incorrect symbol versions for __builtin_nested_func_ptr_created, __builtin_nested_func_ptr in libgcc_s.so.1 Date: Thu, 01 Feb 2024 20:10:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub 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=3D113402 --- Comment #8 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:e9b2f15d989addc1c2ad4604f5fa5ee1bda6023b commit r14-8712-ge9b2f15d989addc1c2ad4604f5fa5ee1bda6023b Author: Jakub Jelinek Date: Thu Feb 1 21:07:01 2024 +0100 libgcc: Avoid warnings on __gcc_nested_func_ptr_created [PR113402] I'm seeing hundreds of In file included from ../../../libgcc/libgcc2.c:56: ../../../libgcc/libgcc2.h:32:13: warning: conflicting types for built-in function =C3=A2__gcc_nested_func_ptr_created=C3=A2; expected =C3=A2void(voi= d *, void *, void *)=C3=A2 +[-Wbuiltin-declaration-mismatch] 32 | extern void __gcc_nested_func_ptr_created (void *, void *, void **); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warnings. Either we need to add like in r14-6218 #pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch" (but in that case because of the libgcc2.h prototype (why is it there?) it would need to be also with #pragma GCC diagnostic push/pop around), or we could go with just following how the builtins are prototyped on t= he compiler side and only cast to void ** when dereferencing (which is in a single spot in each TU). 2024-02-01 Jakub Jelinek PR libgcc/113402 * libgcc2.h (__gcc_nested_func_ptr_created): Change type of last argument from void ** to void *. * config/i386/heap-trampoline.c (__gcc_nested_func_ptr_created): Change type of dst from void ** to void * and cast dst to void = ** before dereferencing it. * config/aarch64/heap-trampoline.c (__gcc_nested_func_ptr_creat= ed): Likewise.=