Fix detection of unknown gcc function attributes #8483
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
As described in autoconf-archive upstream [1], from where
build/ax_gcc_func_attribute.m4is forked, the old unknown func attrdetection method would throw a false negative anytime an unrelated
warning was raised.
This results in
ax_cv_have_func_attribute_targetbeing set tonowhenever certain compiler Warning flags are switched on. Namely, having
-Wallon, which is a default CFLAG for some linux distributions, willresult in
when evaluating support for the
targetfunction attribute.With that configuration value set to
no, the compiled php binarieswill not support x86_64 v3 instructions such as avx2 and sse2, which
should speed up specific tasks ran by PHP.
This issue was originally reported in Ubuntu [2].
[1] http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=commitdiff;h=df0894ad1a8195df67a52108b931e07d708cec9a
[2] https://bugs.launchpad.net/ubuntu/+source/php8.1/+bug/1882279