|
Karsten Hopp |
17d5b8 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
17d5b8 |
Subject: Patch 7.2.316
|
|
Karsten Hopp |
17d5b8 |
Fcc: outbox
|
|
Karsten Hopp |
17d5b8 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
17d5b8 |
Mime-Version: 1.0
|
|
Karsten Hopp |
17d5b8 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
17d5b8 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
17d5b8 |
------------
|
|
Karsten Hopp |
17d5b8 |
|
|
Karsten Hopp |
17d5b8 |
Patch 7.2.316
|
|
Karsten Hopp |
17d5b8 |
Problem: May get multiple _FORTIFY_SOURCE arguments. (Tony Mechelynck)
|
|
Karsten Hopp |
17d5b8 |
Solution: First remove all these arguments and then add the one we want.
|
|
Karsten Hopp |
17d5b8 |
(Dominique Pelle)
|
|
Karsten Hopp |
17d5b8 |
Files: src/auto/configure, src/configure.in
|
|
Karsten Hopp |
17d5b8 |
|
|
Karsten Hopp |
17d5b8 |
|
|
Karsten Hopp |
17d5b8 |
*** ../vim-7.2.315/src/auto/configure 2009-12-02 17:59:08.000000000 +0100
|
|
Karsten Hopp |
17d5b8 |
--- src/auto/configure 2009-12-16 17:05:59.000000000 +0100
|
|
Karsten Hopp |
17d5b8 |
***************
|
|
Karsten Hopp |
17d5b8 |
*** 17185,17194 ****
|
|
Karsten Hopp |
17d5b8 |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
Karsten Hopp |
17d5b8 |
$as_echo "no" >&6; }
|
|
Karsten Hopp |
17d5b8 |
fi
|
|
Karsten Hopp |
17d5b8 |
! { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
|
|
Karsten Hopp |
17d5b8 |
$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
|
|
Karsten Hopp |
17d5b8 |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
17d5b8 |
! CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
|
|
Karsten Hopp |
17d5b8 |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
Karsten Hopp |
17d5b8 |
$as_echo "yes" >&6; }
|
|
Karsten Hopp |
17d5b8 |
else
|
|
Karsten Hopp |
17d5b8 |
--- 17185,17194 ----
|
|
Karsten Hopp |
17d5b8 |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
Karsten Hopp |
17d5b8 |
$as_echo "no" >&6; }
|
|
Karsten Hopp |
17d5b8 |
fi
|
|
Karsten Hopp |
17d5b8 |
! { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
|
|
Karsten Hopp |
17d5b8 |
$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
|
|
Karsten Hopp |
17d5b8 |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
17d5b8 |
! CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
|
|
Karsten Hopp |
17d5b8 |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
Karsten Hopp |
17d5b8 |
$as_echo "yes" >&6; }
|
|
Karsten Hopp |
17d5b8 |
else
|
|
Karsten Hopp |
17d5b8 |
*** ../vim-7.2.315/src/configure.in 2009-12-02 17:59:08.000000000 +0100
|
|
Karsten Hopp |
17d5b8 |
--- src/configure.in 2009-12-16 17:05:55.000000000 +0100
|
|
Karsten Hopp |
17d5b8 |
***************
|
|
Karsten Hopp |
17d5b8 |
*** 3241,3249 ****
|
|
Karsten Hopp |
17d5b8 |
fi
|
|
Karsten Hopp |
17d5b8 |
dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is
|
|
Karsten Hopp |
17d5b8 |
dnl declared as char x[1] but actually longer. Introduced in gcc 4.0.
|
|
Karsten Hopp |
17d5b8 |
AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
|
|
Karsten Hopp |
17d5b8 |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
17d5b8 |
! CFLAGS=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
|
|
Karsten Hopp |
17d5b8 |
AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
17d5b8 |
else
|
|
Karsten Hopp |
17d5b8 |
AC_MSG_RESULT(no)
|
|
Karsten Hopp |
17d5b8 |
--- 3241,3250 ----
|
|
Karsten Hopp |
17d5b8 |
fi
|
|
Karsten Hopp |
17d5b8 |
dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is
|
|
Karsten Hopp |
17d5b8 |
dnl declared as char x[1] but actually longer. Introduced in gcc 4.0.
|
|
Karsten Hopp |
17d5b8 |
+ dnl Also remove duplicate _FORTIFY_SOURCE arguments.
|
|
Karsten Hopp |
17d5b8 |
AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
|
|
Karsten Hopp |
17d5b8 |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
17d5b8 |
! CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
|
|
Karsten Hopp |
17d5b8 |
AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
17d5b8 |
else
|
|
Karsten Hopp |
17d5b8 |
AC_MSG_RESULT(no)
|
|
Karsten Hopp |
17d5b8 |
*** ../vim-7.2.315/src/version.c 2009-12-02 17:59:08.000000000 +0100
|
|
Karsten Hopp |
17d5b8 |
--- src/version.c 2009-12-16 17:12:25.000000000 +0100
|
|
Karsten Hopp |
17d5b8 |
***************
|
|
Karsten Hopp |
17d5b8 |
*** 683,684 ****
|
|
Karsten Hopp |
17d5b8 |
--- 683,686 ----
|
|
Karsten Hopp |
17d5b8 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
17d5b8 |
+ /**/
|
|
Karsten Hopp |
17d5b8 |
+ 316,
|
|
Karsten Hopp |
17d5b8 |
/**/
|
|
Karsten Hopp |
17d5b8 |
|
|
Karsten Hopp |
17d5b8 |
--
|
|
Karsten Hopp |
17d5b8 |
Have you heard about the new Beowulf cluster? It's so fast, it executes
|
|
Karsten Hopp |
17d5b8 |
an infinite loop in 6 seconds.
|
|
Karsten Hopp |
17d5b8 |
|
|
Karsten Hopp |
17d5b8 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
17d5b8 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
17d5b8 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
17d5b8 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|