From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 701E4385840C; Tue, 4 Oct 2022 12:57:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 701E4385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664888239; bh=VPIvJyxL39Bef8IvChrtyZMj4KUJzbUIGyOWn2MsU8o=; h=From:To:Subject:Date:From; b=AdGCr+hjnUcrc5S5sv/wrKGH36OhtCm3k1V2uV4qSzrhYW2N3aiMgjYA5BAxEdqDJ gYPpNM31zqzabvfqhhx7bxF+MqVVZ0gFEHN8v8Bgy01TERpXqWQZivSEWKM1dPZn16 alu9WsYYK+5wxwalAWru/+gWjHks9Oh+6BETsAyA= 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: fc95f4d5415e5a892e0fbac8b667edd48657ec61 X-Git-Newrev: 82c0cadf4572f07c4db20c3818088fa45e15e564 Message-Id: <20221004125719.701E4385840C@sourceware.org> Date: Tue, 4 Oct 2022 12:57:19 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=82c0cadf4572f07c4db20c3818088fa45e15e564 commit 82c0cadf4572f07c4db20c3818088fa45e15e564 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 2b83199245..78fad019b2 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"