forked from aniani/vim
patch 8.2.2431: warning for -fno-strength-reduce with Clang 11
Problem: Warning for -fno-strength-reduce with Clang 11. Solution: Adjust check for clang version number.
This commit is contained in:
2
src/auto/configure
vendored
2
src/auto/configure
vendored
@@ -4512,7 +4512,7 @@ if test x"$CLANG_VERSION_STRING" != x"" ; then
|
|||||||
$as_echo "$CLANG_VERSION" >&6; }
|
$as_echo "$CLANG_VERSION" >&6; }
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
|
||||||
$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
|
$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
|
||||||
if test "$CLANG_VERSION" -ge 500002075 ; then
|
if test "$CLANG_MAJOR" -ge 10 -o "$CLANG_VERSION" -ge 500002075 ; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
|
CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
|
||||||
|
|||||||
@@ -127,8 +127,9 @@ if test x"$CLANG_VERSION_STRING" != x"" ; then
|
|||||||
dnl change the constant 500002075 below appropriately. To get the
|
dnl change the constant 500002075 below appropriately. To get the
|
||||||
dnl integer corresponding to a version number, refer to the
|
dnl integer corresponding to a version number, refer to the
|
||||||
dnl definition of CLANG_VERSION above.
|
dnl definition of CLANG_VERSION above.
|
||||||
|
dnl Clang 11 reports "11", assume Clang 10 and later work like this.
|
||||||
AC_MSG_CHECKING(if clang supports -fno-strength-reduce)
|
AC_MSG_CHECKING(if clang supports -fno-strength-reduce)
|
||||||
if test "$CLANG_VERSION" -ge 500002075 ; then
|
if test "$CLANG_MAJOR" -ge 10 -o "$CLANG_VERSION" -ge 500002075 ; then
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
|
CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2431,
|
||||||
/**/
|
/**/
|
||||||
2430,
|
2430,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user