From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id EABBC385841D; Fri, 9 Feb 2024 17:31:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EABBC385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707499919; bh=/rxz466KMm+dSNy1/kfzJ2BlZt+rRbPEvKJx8niAR6s=; h=From:To:Subject:Date:From; b=sS9arLkF1bgd3K8+Pjt/8gR5hbGe2l+6VoThQPqb/37kaliwo8iK9Cdfgs1liw7G+ IolNRjEaCCHgDp/xAJpJOwrpvu7DmTBy7/L9OkWzX2xdbcAybwd78vsURdJyjPDfp+ lKh8icLFolYHNYO5DWIaMMSL1qO1wJeze7/pBOzg= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] x86: Remove __strstr_generic prototype X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: b6a5db8bec99f4997ed0fe4c1ccd2c3027135bb9 X-Git-Newrev: 40ea7b8ad2da3beb94e121c5521554d3e401da47 Message-Id: <20240209173159.EABBC385841D@sourceware.org> Date: Fri, 9 Feb 2024 17:31:59 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=40ea7b8ad2da3beb94e121c5521554d3e401da47 commit 40ea7b8ad2da3beb94e121c5521554d3e401da47 Author: Adhemerval Zanella Date: Mon Mar 14 18:27:33 2022 -0300 x86: Remove __strstr_generic prototype This is not really require and clang throws a attribute declaration must precede definition: ../sysdeps/x86_64/multiarch/strstr.c:37:54: error: attribute declaration must precede definition [-Werror,-Wignored-attributes] extern __typeof (__redirect_strstr) __strstr_generic attribute_hidden; ^ ./../include/libc-symbols.h:423:43: note: expanded from macro 'attribute_hidden' # define attribute_hidden __attribute__ ((visibility ("hidden"))) ^ ../string/strstr.c:76:1: note: previous definition is here STRSTR (const char *haystack, const char *needle) ^ ../sysdeps/x86_64/multiarch/strstr.c:27:16: note: expanded from macro 'STRSTR' #define STRSTR __strstr_generic ^ 1 error generated. Diff: --- sysdeps/x86_64/multiarch/strstr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sysdeps/x86_64/multiarch/strstr.c b/sysdeps/x86_64/multiarch/strstr.c index a513bac5c3..0845048202 100644 --- a/sysdeps/x86_64/multiarch/strstr.c +++ b/sysdeps/x86_64/multiarch/strstr.c @@ -34,7 +34,6 @@ #include "string/strstr.c" extern __typeof (__redirect_strstr) __strstr_sse2_unaligned attribute_hidden; -extern __typeof (__redirect_strstr) __strstr_generic attribute_hidden; extern __typeof (__redirect_strstr) __strstr_avx512 attribute_hidden; #include "init-arch.h"