From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id B7AF73894C0D; Thu, 28 Sep 2023 17:52:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7AF73894C0D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695923538; bh=6zJZbNR6gmsygJFpt7Ry1aejju8ibv0MjRYUMy/73LE=; h=From:To:Subject:Date:From; b=pnUGSk3Vcz1srWcCAbswkOXNyWbOTDgUEN8lFxwlXgMDJnxMlTF6VZsWO18s726jU 0PQ955vFwC8S92OhUvb1BzlxZpSXxmgA7k/ELoVUBAYK1A8A+GNcjh+LhqgTWDs7s/ c4VQffRvcQCFOOaDEaGwhN6or1lyAmqvAF4AWZUg= 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: 8fbc46b7bdbe15670a0c5752c99aedcf8f19f51b X-Git-Newrev: 29374110c351fdaa3e1703991a6c4ec0fa0b75a4 Message-Id: <20230928175218.B7AF73894C0D@sourceware.org> Date: Thu, 28 Sep 2023 17:52:18 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=29374110c351fdaa3e1703991a6c4ec0fa0b75a4 commit 29374110c351fdaa3e1703991a6c4ec0fa0b75a4 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 750218ac3d..7c7a320f88 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"