[php-src] PR #13784: Fix AX_GCC_FUNC_ATTRIBUTE failure

From: Date: Fri, 22 Mar 2024 09:34:32 +0000
Subject: [php-src] PR #13784: Fix AX_GCC_FUNC_ATTRIBUTE failure
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-25513@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13784 Author: remicollet AX_GCC_FUNC_ATTRIBUTE([target]) may fail breaking various optimization (ex: base64_encode/base64_decode) In config.log ``` configure:17050: checking for __attribute__((target)) configure:17072: cc -o conftest -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=incompatible-pointer-types -fvisibility=hidden -D_GNU_SOURCE conftest.c -lm >&5 conftest.c:146:32: warning: 'bar' declared 'static' but never defined [-Wunused-function] 146 | static int bar( void ) __attribute__((target("sse2"))); | ^~~ configure:17072: $? = 0 configure:17087: result: no ``` Dropping the static keyword allow the test to work Notice, this file is outdated, see http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_gcc_func_attribute.m4 (serial 9 => 13) but "target" is not part of this upstream file, and only ifunc and target are used.

« previous php.git-pulls (#25513) next »