From: Paul Eggert Date: Tue, 17 Apr 2012 21:38:34 +0000 (-0700) Subject: Merge from trunk. X-Git-Tag: emacs-24.2.90~471^2~352 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ae6e112df045de8ddc22e85f8538975d4664b325;p=emacs.git Merge from trunk. --- ae6e112df045de8ddc22e85f8538975d4664b325 diff --cc ChangeLog index 99ce37a2fee,a7da9e1ad5b..6020d157797 --- a/ChangeLog +++ b/ChangeLog @@@ -1,20 -1,14 +1,31 @@@ - 2012-04-14 Paul Eggert ++2012-04-17 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. + * 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): + Add getpwent, endpwent, getgrent, endgrent. (Bug#7900) + + 2012-04-16 Glenn Morris + + * configure.in (NS_HAVE_NSINTEGER): Remove unnecessary variable. + + * configure.in: Remove X libs workaround for old autoconf. + 2012-04-12 Ken Brown * configure.in: Warn that Cygwin 1.5 is unsupported. (Bug#10398) diff --cc etc/NEWS index 27b5406a155,0d8c145b362..16b9f75c503 --- a/etc/NEWS +++ b/etc/NEWS @@@ -22,13 -22,6 +22,13 @@@ so we will look at it and add it to th * Installation Changes in Emacs 24.2 + +** New configure option '--enable-gcc-warnings', intended for developers. +If building with GCC, this enables compile-time checks that warn about +possibly-questionable C code. On a recent GNU system there should be +no warnings; on older and on non-GNU systems the generated warnings - may or may not be useful. By default, these warnings are not generated. ++may be useful. + * Startup Changes in Emacs 24.2 diff --cc lib-src/ChangeLog index 55e76c0b008,ea5f5a26627..161d71381c0 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@@ -1,10 -1,3 +1,10 @@@ - 2012-04-16 Paul Eggert ++2012-04-17 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 85b69f47d28,8ac9e6994ab..f6ffedeafda --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog @@@ -1,10 -1,3 +1,10 @@@ - 2012-04-14 Paul Eggert ++2012-04-17 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 fa7dc234717,320d2f5e6c1..bf3a11d5bd8 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog @@@ -1,9 -1,3 +1,9 @@@ - 2012-04-14 Paul Eggert ++2012-04-17 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 a76ea61abd8,5b86ccec21e..243899e011d --- a/oldXMenu/ChangeLog +++ b/oldXMenu/ChangeLog @@@ -1,10 -1,3 +1,10 @@@ - 2012-04-14 Paul Eggert ++2012-04-17 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 7362bf462a9,8c0dcc9c044..78fa3b501a3 --- a/src/ChangeLog +++ b/src/ChangeLog @@@ -1,3 -1,12 +1,25 @@@ ++2012-04-17 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 Glenn Morris + + * dired.c (Fsystem_users): Doc fix. + + 2012-04-17 Dmitry Antipov + + * dired.c (Fsystem_users, Fsystem_groups): New functions. (Bug#7900) + (syms_of_dired): Add them. + 2012-04-16 Paul Eggert Fix minor alloc.c problems found by static checking.