From: Paul Eggert Date: Wed, 26 Dec 2012 05:41:42 +0000 (-0800) Subject: Revert static checking of stack smashing. X-Git-Tag: emacs-24.3.90~173^2~7^2~488 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a8e1690bbde896247359c967b15b6e0b8cac1a69;p=emacs.git Revert static checking of stack smashing. * configure.ac (WARN_CFLAGS): Omit -Wstack-protector when configured with --enable-gcc-warnings. -Wstack-protector causes diagnostics to be issued on Ubuntu 12.10 x86-64. --- diff --git a/ChangeLog b/ChangeLog index 2e3c32dacb1..dbce562664e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-12-26 Paul Eggert + + Revert static checking of stack smashing. + * configure.ac (WARN_CFLAGS): Omit -Wstack-protector when + configured with --enable-gcc-warnings. -Wstack-protector causes + diagnostics to be issued on Ubuntu 12.10 x86-64. + 2012-12-24 Paul Eggert Merge from gnulib, incorporating: diff --git a/configure.ac b/configure.ac index 3c8be79e24c..9d3e872c29c 100644 --- a/configure.ac +++ b/configure.ac @@ -727,23 +727,12 @@ else # . nw="$nw -Wshadow" + # Emacs's use of alloca inhibits protecting the stack. + nw="$nw -Wstack-protector" + # The following line should be removable at some point. nw="$nw -Wsuggest-attribute=pure" - AC_MSG_CHECKING([whether to use -Wstack-protector]) - AC_PREPROC_IFELSE( - [AC_LANG_PROGRAM( - [[#if (1 <= __LONG_MAX__ >> 31 >> 31 \ - && 4 < __GNUC__ + (7 < __GNUC_MINOR__ + (2 <= __GNUC_PATCHLEVEL__))) - /* OK */ - #else - #error "Not GCC, or GCC before 4.7.2, or 'long int' has < 64 bits." - #endif - ]])], - [AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no) - nw="$nw -Wstack-protector"]) - gl_MANYWARN_ALL_GCC([ws]) gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw]) for w in $ws; do