Patch 8.2.2431
Problem:    Warning for -fno-strength-reduce with Clang 11.
Solution:   Adjust check for clang version number.
Files:      src/configure.ac, src/auto/configure


*** ../vim-8.2.2430/src/configure.ac    2021-01-12 20:51:20.709167140 +0100
--- src/configure.ac    2021-01-30 19:29:50.079007829 +0100
***************
*** 127,134 ****
    dnl change the constant 500002075 below appropriately.  To get the
    dnl integer corresponding to a version number, refer to the
    dnl definition of CLANG_VERSION above.
    AC_MSG_CHECKING(if clang supports -fno-strength-reduce)
!   if test "$CLANG_VERSION" -ge 500002075 ; then
      AC_MSG_RESULT(no)
      CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
    else
--- 127,135 ----
    dnl change the constant 500002075 below appropriately.  To get the
    dnl integer corresponding to a version number, refer to the
    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)
!   if test "$CLANG_MAJOR" -ge 10 -o "$CLANG_VERSION" -ge 500002075 ; then
      AC_MSG_RESULT(no)
      CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
    else
*** ../vim-8.2.2430/src/auto/configure  2021-01-12 20:51:20.713167129 +0100
--- src/auto/configure  2021-01-30 19:29:53.342998029 +0100
***************
*** 4510,4518 ****
    CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' 
$CLANG_REVISION`
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
  $as_echo "$CLANG_VERSION" >&6; }
!           { $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; }
!   if test "$CLANG_VERSION" -ge 500002075 ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  $as_echo "no" >&6; }
      CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
--- 4510,4518 ----
    CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' 
$CLANG_REVISION`
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
  $as_echo "$CLANG_VERSION" >&6; }
!             { $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; }
!   if test "$CLANG_MAJOR" -ge 10 -o "$CLANG_VERSION" -ge 500002075 ; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  $as_echo "no" >&6; }
      CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
*** ../vim-8.2.2430/src/version.c       2021-01-30 18:09:02.723958488 +0100
--- src/version.c       2021-01-30 19:30:49.490829647 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2431,
  /**/

-- 
GALAHAD:   Camelot ...
LAUNCELOT: Camelot ...
GAWAIN:    It's only a model.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202101301834.10UIY7Pt724603%40masaka.moolenaar.net.

Raspunde prin e-mail lui