|
Karsten Hopp |
bde42a |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
bde42a |
Subject: Patch 7.3.368
|
|
Karsten Hopp |
bde42a |
Fcc: outbox
|
|
Karsten Hopp |
bde42a |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
bde42a |
Mime-Version: 1.0
|
|
Karsten Hopp |
bde42a |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
bde42a |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
bde42a |
------------
|
|
Karsten Hopp |
bde42a |
|
|
Karsten Hopp |
bde42a |
Patch 7.3.368
|
|
Karsten Hopp |
bde42a |
Problem: Gcc complains about redefining _FORTIFY_SOURCE.
|
|
Karsten Hopp |
bde42a |
Solution: Undefine it before redefining it.
|
|
Karsten Hopp |
bde42a |
Files: src/Makefile, src/configure.in, src/auto/configure
|
|
Karsten Hopp |
bde42a |
|
|
Karsten Hopp |
bde42a |
|
|
Karsten Hopp |
bde42a |
*** ../vim-7.3.367/src/Makefile 2011-10-20 16:35:25.000000000 +0200
|
|
Karsten Hopp |
bde42a |
--- src/Makefile 2011-12-08 15:16:13.000000000 +0100
|
|
Karsten Hopp |
bde42a |
***************
|
|
Karsten Hopp |
bde42a |
*** 561,568 ****
|
|
Karsten Hopp |
bde42a |
#CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
|
|
Karsten Hopp |
bde42a |
|
|
Karsten Hopp |
bde42a |
# Use this with GCC to check for mistakes, unused arguments, etc.
|
|
Karsten Hopp |
bde42a |
! #CFLAGS = -g -Wall -Wextra -Wmissing-prototypes -Wunreachable-code -D_FORTIFY_SOURCE=1
|
|
Karsten Hopp |
bde42a |
! #CFLAGS = -g -O2 -Wall -Wextra -Wmissing-prototypes -D_FORTIFY_SOURCE=1 -DU_DEBUG
|
|
Karsten Hopp |
bde42a |
#PYTHON_CFLAGS_EXTRA = -Wno-missing-field-initializers
|
|
Karsten Hopp |
bde42a |
#MZSCHEME_CFLAGS_EXTRA = -Wno-unreachable-code -Wno-unused-parameter
|
|
Karsten Hopp |
bde42a |
|
|
Karsten Hopp |
bde42a |
--- 561,568 ----
|
|
Karsten Hopp |
bde42a |
#CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
|
|
Karsten Hopp |
bde42a |
|
|
Karsten Hopp |
bde42a |
# Use this with GCC to check for mistakes, unused arguments, etc.
|
|
Karsten Hopp |
bde42a |
! #CFLAGS = -g -Wall -Wextra -Wmissing-prototypes -Wunreachable-code -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
|
|
Karsten Hopp |
bde42a |
! #CFLAGS = -g -O2 -Wall -Wextra -Wmissing-prototypes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DU_DEBUG
|
|
Karsten Hopp |
bde42a |
#PYTHON_CFLAGS_EXTRA = -Wno-missing-field-initializers
|
|
Karsten Hopp |
bde42a |
#MZSCHEME_CFLAGS_EXTRA = -Wno-unreachable-code -Wno-unused-parameter
|
|
Karsten Hopp |
bde42a |
|
|
Karsten Hopp |
bde42a |
*** ../vim-7.3.367/src/configure.in 2011-09-02 12:27:20.000000000 +0200
|
|
Karsten Hopp |
bde42a |
--- src/configure.in 2011-12-01 20:23:22.000000000 +0100
|
|
Karsten Hopp |
bde42a |
***************
|
|
Karsten Hopp |
bde42a |
*** 3584,3592 ****
|
|
Karsten Hopp |
bde42a |
dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is
|
|
Karsten Hopp |
bde42a |
dnl declared as char x[1] but actually longer. Introduced in gcc 4.0.
|
|
Karsten Hopp |
bde42a |
dnl Also remove duplicate _FORTIFY_SOURCE arguments.
|
|
Karsten Hopp |
bde42a |
AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
|
|
Karsten Hopp |
bde42a |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
bde42a |
! 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 |
bde42a |
AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
bde42a |
else
|
|
Karsten Hopp |
bde42a |
AC_MSG_RESULT(no)
|
|
Karsten Hopp |
bde42a |
--- 3584,3593 ----
|
|
Karsten Hopp |
bde42a |
dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is
|
|
Karsten Hopp |
bde42a |
dnl declared as char x[1] but actually longer. Introduced in gcc 4.0.
|
|
Karsten Hopp |
bde42a |
dnl Also remove duplicate _FORTIFY_SOURCE arguments.
|
|
Karsten Hopp |
bde42a |
+ dnl And undefine it first to avoid a warning.
|
|
Karsten Hopp |
bde42a |
AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
|
|
Karsten Hopp |
bde42a |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
bde42a |
! CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
|
|
Karsten Hopp |
bde42a |
AC_MSG_RESULT(yes)
|
|
Karsten Hopp |
bde42a |
else
|
|
Karsten Hopp |
bde42a |
AC_MSG_RESULT(no)
|
|
Karsten Hopp |
bde42a |
*** ../vim-7.3.367/src/auto/configure 2011-09-02 12:27:20.000000000 +0200
|
|
Karsten Hopp |
bde42a |
--- src/auto/configure 2011-12-01 20:24:02.000000000 +0100
|
|
Karsten Hopp |
bde42a |
***************
|
|
Karsten Hopp |
bde42a |
*** 12483,12492 ****
|
|
Karsten Hopp |
bde42a |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
Karsten Hopp |
bde42a |
$as_echo "no" >&6; }
|
|
Karsten Hopp |
bde42a |
fi
|
|
Karsten Hopp |
bde42a |
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
|
|
Karsten Hopp |
bde42a |
$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
|
|
Karsten Hopp |
bde42a |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
bde42a |
! 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 |
bde42a |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
Karsten Hopp |
bde42a |
$as_echo "yes" >&6; }
|
|
Karsten Hopp |
bde42a |
else
|
|
Karsten Hopp |
bde42a |
--- 12483,12492 ----
|
|
Karsten Hopp |
bde42a |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
Karsten Hopp |
bde42a |
$as_echo "no" >&6; }
|
|
Karsten Hopp |
bde42a |
fi
|
|
Karsten Hopp |
bde42a |
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
|
|
Karsten Hopp |
bde42a |
$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
|
|
Karsten Hopp |
bde42a |
if test "$gccmajor" -gt "3"; then
|
|
Karsten Hopp |
bde42a |
! CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
|
|
Karsten Hopp |
bde42a |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
Karsten Hopp |
bde42a |
$as_echo "yes" >&6; }
|
|
Karsten Hopp |
bde42a |
else
|
|
Karsten Hopp |
bde42a |
*** ../vim-7.3.367/src/version.c 2011-12-08 15:14:04.000000000 +0100
|
|
Karsten Hopp |
bde42a |
--- src/version.c 2011-12-08 15:15:13.000000000 +0100
|
|
Karsten Hopp |
bde42a |
***************
|
|
Karsten Hopp |
bde42a |
*** 716,717 ****
|
|
Karsten Hopp |
bde42a |
--- 716,719 ----
|
|
Karsten Hopp |
bde42a |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
bde42a |
+ /**/
|
|
Karsten Hopp |
bde42a |
+ 368,
|
|
Karsten Hopp |
bde42a |
/**/
|
|
Karsten Hopp |
bde42a |
|
|
Karsten Hopp |
bde42a |
--
|
|
Karsten Hopp |
bde42a |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
bde42a |
248. You sign your letters with your e-mail address instead of your name.
|
|
Karsten Hopp |
bde42a |
|
|
Karsten Hopp |
bde42a |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
bde42a |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
bde42a |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
bde42a |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|