From: Paul Eggert Date: Wed, 18 Apr 2012 16:45:13 +0000 (-0700) Subject: Merge from trunk. X-Git-Tag: emacs-24.2.90~471^2~347 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6c94c34fe8fef20680c29731277ad8baf87bf47e;p=emacs.git Merge from trunk. --- 6c94c34fe8fef20680c29731277ad8baf87bf47e diff --cc ChangeLog index 18633199008,a7da9e1ad5b..95baf9c5294 --- a/ChangeLog +++ b/ChangeLog @@@ -1,21 -1,3 +1,21 @@@ - 2012-04-17 Paul Eggert ++2012-04-18 Paul Eggert + + configure: new option --enable-gcc-warnings (Bug#11207) + I have been using this change for many months in my private copy + of Emacs, and have used it to find several bugs. It's mature + enough to publish now. + * Makefile.in (GNULIB_MODULES): Add warnings, manywarnings. + * configure.in: Support --enable-gcc-warnings, in the style of + other GNU packages such as coreutils. + (C_WARNINGS_SWITCH): Remove, replacing with... + (WARN_CFLAGS, GNULIB_WARN_CFLAGS): New variable. + (PKG_CHECK_MODULES, C_SWITCH_X_SITE): Use -isystem rather than -I, + when including system files with GCC. + * etc/NEWS: Mention --enable-gcc-warnings. + * INSTALL (DETAILED BUILDING AND INSTALLATION): Likewise. + * lib/Makefile.am (AM_CFLAGS): New macro. + * m4/manywarnings.m4, m4/warnings.m4: New files, from gnulib. + 2012-04-17 Dmitry Antipov * configure.in (AC_CHECK_FUNCS): diff --cc lib-src/ChangeLog index d8d0fc877b9,ea5f5a26627..106b2c8faca --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@@ -1,10 -1,3 +1,10 @@@ - 2012-04-17 Paul Eggert ++2012-04-18 Paul Eggert + + configure: new option --enable-gcc-warnings (Bug#11207) + * Makefile.in (C_WARNINGS_SWITCH): Remove. + (WARN_CFLAGS, WERROR_CFLAGS): New macros. + (BASE_CFLAGS): Use new macros rather than old. + 2012-04-16 Paul Eggert Assume less-ancient POSIX support. diff --cc lwlib/ChangeLog index f6ffedeafda,8ac9e6994ab..5451fa38001 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog @@@ -1,10 -1,3 +1,10 @@@ - 2012-04-17 Paul Eggert ++2012-04-18 Paul Eggert + + configure: new option --enable-gcc-warnings (Bug#11207) + * Makefile.in (C_WARNINGS_SWITCH): Remove. + (WARN_CFLAGS, WERROR_CFLAGS): New macros. + (ALL_CFLAGS): Use new macros rather than old. + 2012-04-11 Glenn Morris * Makefile.in (C_SWITCH_X_SYSTEM): Remove. diff --cc msdos/ChangeLog index bf3a11d5bd8,320d2f5e6c1..82f877eee9e --- a/msdos/ChangeLog +++ b/msdos/ChangeLog @@@ -1,9 -1,3 +1,9 @@@ - 2012-04-17 Paul Eggert ++2012-04-18 Paul Eggert + + configure: new option --enable-gcc-warnings (Bug#11207) + * sed1v2.inp, sed3v2.inp, sedlibmk.inp: GNULIB_WARN_CFLAGS, + WARN_CFLAGS, and WERROR_CFLAGS replace C_WARNINGS_SWITCH. + 2012-04-11 Glenn Morris * sedlibmk.inp, sed1v2.inp: GNUSTEP_CFLAGS replaces C_SWITCH_X_SYSTEM. diff --cc oldXMenu/ChangeLog index 243899e011d,5b86ccec21e..b1eb200416b --- a/oldXMenu/ChangeLog +++ b/oldXMenu/ChangeLog @@@ -1,10 -1,3 +1,10 @@@ - 2012-04-17 Paul Eggert ++2012-04-18 Paul Eggert + + configure: new option --enable-gcc-warnings (Bug#11207) + * Makefile.in (C_WARNINGS_SWITCH): Remove. + (WARN_CFLAGS, WERROR_CFLAGS): New macros. + (ALL_CFLAGS): Use new macros rather than old. + 2012-04-11 Glenn Morris * Makefile.in (C_SWITCH_X_SYSTEM): Remove. diff --cc src/ChangeLog index ae245a254a0,2e3142b7015..ae91f04635b --- a/src/ChangeLog +++ b/src/ChangeLog @@@ -1,16 -1,3 +1,16 @@@ - 2012-04-17 Paul Eggert ++2012-04-18 Paul Eggert + + configure: new option --enable-gcc-warnings (Bug#11207) + * Makefile.in (C_WARNINGS_SWITCH): Remove. + (WARN_CFLAGS, WERROR_CFLAGS): New macros. + (ALL_CFLAGS): Use new macros rather than old. + * process.c: Ignore -Wstrict-overflow to work around GCC bug 52904. + * regex.c: Ignore -Wstrict-overflow. If !emacs, also ignore + -Wunused-but-set-variable, -Wunused-function, -Wunused-macros, + -Wunused-result, -Wunused-variable. This should go away once + the Emacs and Gnulib regex code is merged. + (xmalloc, xrealloc): Now static. + 2012-04-17 Paul Eggert * dired.c (Fsystem_groups): Remove unused local.