Merge from trunk.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 14 Apr 2012 04:37:44 +0000 (21:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 14 Apr 2012 04:37:44 +0000 (21:37 -0700)
1  2 
ChangeLog
configure.in
etc/NEWS
lib-src/ChangeLog
lwlib/ChangeLog
lwlib/Makefile.in
oldXMenu/ChangeLog
oldXMenu/Makefile.in
src/ChangeLog
src/Makefile.in

diff --combined ChangeLog
+++ b/ChangeLog
@@@ -1,20 -1,11 +1,28 @@@
- 2012-04-10  Paul Eggert  <eggert@cs.ucla.edu>
++2012-04-14  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      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-12  Ken Brown  <kbrown@cornell.edu>
+       * configure.in: Warn that Cygwin 1.5 is unsupported.  (Bug#10398)
+ 2012-04-11  Glenn Morris  <rgm@gnu.org>
+       * configure.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM.
  2012-04-10  Glenn Morris  <rgm@gnu.org>
  
        * configure.in: Conditionally generate admin/unidata/Makefile.
diff --combined configure.in
    test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
  fi
  
 -### Use -Wdeclaration-after-statement if the compiler supports it
 -AC_MSG_CHECKING([whether gcc understands -Wdeclaration-after-statement])
 -SAVE_CFLAGS="$CFLAGS"
 -CFLAGS="$CFLAGS -Wdeclaration-after-statement"
 -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], has_option=yes, has_option=no)
 -if test $has_option = yes; then
 -   C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
 -fi
 -AC_MSG_RESULT($has_option)
 -CFLAGS="$SAVE_CFLAGS"
 -unset has_option
 -unset SAVE_CFLAGS
 -
 -### Use -Wold-style-definition if the compiler supports it
 -# This can be removed when conversion to standard C is finished.
 -AC_MSG_CHECKING([whether gcc understands -Wold-style-definition])
 -SAVE_CFLAGS="$CFLAGS"
 -CFLAGS="$CFLAGS -Wold-style-definition"
 -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], has_option=yes, has_option=no)
 -if test $has_option = yes; then
 -   C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
 -fi
 -AC_MSG_RESULT($has_option)
 -CFLAGS="$SAVE_CFLAGS"
 -unset has_option
 -unset SAVE_CFLAGS
 -
 -### Use -Wimplicit-function-declaration if the compiler supports it
 -AC_MSG_CHECKING([whether gcc understands -Wimplicit-function-declaration])
 -SAVE_CFLAGS="$CFLAGS"
 -CFLAGS="$CFLAGS -Wimplicit-function-declaration"
 -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], has_option=yes, has_option=no)
 -if test $has_option = yes; then
 -   C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
 +AC_ARG_ENABLE([gcc-warnings],
 +  [AS_HELP_STRING([--enable-gcc-warnings],
 +                  [turn on lots of GCC warnings (for developers)])],
 +  [case $enableval in
 +     yes|no) ;;
 +     *)      AC_MSG_ERROR([bad value $enableval for gcc-warnings option]) ;;
 +   esac
 +   gl_gcc_warnings=$enableval],
 +  [gl_gcc_warnings=no]
 +)
 +
 +# gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
 +# ------------------------------------------------
 +# If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
 +# Otherwise, run RUN-IF-NOT-FOUND.
 +AC_DEFUN([gl_GCC_VERSION_IFELSE],
 +  [AC_PREPROC_IFELSE(
 +    [AC_LANG_PROGRAM(
 +      [[
 +#if ($1) < __GNUC__ || (($1) == __GNUC__ && ($2) <= __GNUC_MINOR__)
 +/* ok */
 +#else
 +# error "your version of gcc is older than $1.$2"
 +#endif
 +      ]]),
 +    ], [$3], [$4])
 +  ]
 +)
 +
 +# When compiling with GCC, prefer -isystem to -I when including system
 +# include files, to avoid generating useless diagnostics for the files.
 +if test "$gl_gcc_warnings" != yes; then
 +  isystem='-I'
 +else
 +  isystem='-isystem '
 +
 +  # This, $nw, is the list of warnings we disable.
 +  nw=
 +
 +  case $with_x_toolkit in
 +    lucid | athena | motif)
 +       # Old toolkits mishandle 'const'.
 +       nw="$nw -Wwrite-strings"
 +       ;;
 +    *)
 +       gl_WARN_ADD([-Werror], [WERROR_CFLAGS])
 +       ;;
 +  esac
 +  AC_SUBST([WERROR_CFLAGS])
 +
 +  nw="$nw -Waggregate-return"       # anachronistic
 +  nw="$nw -Wlong-long"              # C90 is anachronistic (lib/gethrxtime.h)
 +  nw="$nw -Wc++-compat"             # We don't care about C++ compilers
 +  nw="$nw -Wundef"                  # Warns on '#if GNULIB_FOO' etc in gnulib
 +  nw="$nw -Wtraditional"            # Warns on #elif which we use often
 +  nw="$nw -Wcast-qual"              # Too many warnings for now
 +  nw="$nw -Wconversion"             # Too many warnings for now
 +  nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
 +  nw="$nw -Wsign-conversion"        # Too many warnings for now
 +  nw="$nw -Woverlength-strings"     # Not a problem these days
 +  nw="$nw -Wtraditional-conversion" # Too many warnings for now
 +  nw="$nw -Wpadded"                 # Our structs are not padded
 +  nw="$nw -Wredundant-decls"        # We regularly (re)declare getenv etc.
 +  nw="$nw -Wlogical-op"             # any use of fwrite provokes this
 +  nw="$nw -Wformat-nonliteral"      # Emacs does this a lot
 +  nw="$nw -Wvla"                    # warnings in gettext.h
 +  nw="$nw -Wnested-externs"         # use of XARGMATCH/verify_function__
 +  nw="$nw -Wswitch-enum"            # Too many warnings for now
 +  nw="$nw -Wswitch-default"         # Too many warnings for now
 +  nw="$nw -Wfloat-equal"            # e.g., ftoastr.c
 +  nw="$nw -Winline"                 # e.g., dispnew.c's inlining of row_equal_p
 +
 +  # Emacs doesn't care about shadowing; see
 +  # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
 +  nw="$nw -Wshadow"
 +
 +  # The following lines should be removable at some point.
 +  nw="$nw -Wsuggest-attribute=const"
 +  nw="$nw -Wsuggest-attribute=pure"
 +
 +  gl_MANYWARN_ALL_GCC([ws])
 +  gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])
 +  for w in $ws; do
 +    gl_WARN_ADD([$w])
 +  done
 +  gl_WARN_ADD([-Wno-missing-field-initializers]) # We need this one
 +  gl_WARN_ADD([-Wno-sign-compare])     # Too many warnings for now
 +  gl_WARN_ADD([-Wno-type-limits])      # Too many warnings for now
 +  gl_WARN_ADD([-Wno-switch])           # Too many warnings for now
 +  gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
 +  gl_WARN_ADD([-Wno-format-nonliteral])
 +
 +  # In spite of excluding -Wlogical-op above, it is enabled, as of
 +  # gcc 4.5.0 20090517.
 +  gl_WARN_ADD([-Wno-logical-op])
 +
 +  gl_WARN_ADD([-fdiagnostics-show-option])
 +  gl_WARN_ADD([-funit-at-a-time])
 +
 +  AC_SUBST([WARN_CFLAGS])
 +
 +  AC_DEFINE([lint], [1], [Define to 1 if the compiler is checking for lint.])
 +  AC_DEFINE([_FORTIFY_SOURCE], [2],
 +    [enable compile-time and run-time bounds-checking, and some warnings])
 +  AC_DEFINE([GNULIB_PORTCHECK], [1], [enable some gnulib portability checks])
 +
 +  # We use a slightly smaller set of warning options for lib/.
 +  # Remove the following and save the result in GNULIB_WARN_CFLAGS.
 +  nw=
 +  nw="$nw -Wunused-macros"
 +
 +  gl_MANYWARN_COMPLEMENT([GNULIB_WARN_CFLAGS], [$WARN_CFLAGS], [$nw])
 +  AC_SUBST([GNULIB_WARN_CFLAGS])
  fi
 -AC_MSG_RESULT($has_option)
 -CFLAGS="$SAVE_CFLAGS"
 -unset has_option
 -unset SAVE_CFLAGS
  
 -AC_SUBST(C_WARNINGS_SWITCH)
  
  
  #### Some other nice autoconf tests.
@@@ -1201,13 -1127,8 +1201,13 @@@ AC_DEFUN([PKG_CHECK_MODULES], 
          if $PKG_CONFIG --exists "$2" 2>&AS_MESSAGE_LOG_FD &&
           $1_CFLAGS=`$PKG_CONFIG --cflags "$2" 2>&AS_MESSAGE_LOG_FD` &&
           $1_LIBS=`$PKG_CONFIG --libs "$2" 2>&AS_MESSAGE_LOG_FD`; then
 -
 -          $1_CFLAGS=`AS_ECHO(["$$1_CFLAGS"]) | sed -e 's,///*,/,g'`
 +          edit_cflags="
 +            s,///*,/,g
 +            s/^/ /
 +            s/ -I/ $isystem/g
 +            s/^ //
 +          "
 +          $1_CFLAGS=`AS_ECHO(["$$1_CFLAGS"]) | sed -e "$edit_cflags"`
            $1_LIBS=`AS_ECHO(["$$1_LIBS"]) | sed -e 's,///*,/,g'`
              AC_MSG_RESULT([yes CFLAGS='$$1_CFLAGS' LIBS='$$1_LIBS'])
              succeeded=yes
@@@ -1542,7 -1463,7 +1542,7 @@@ AC_SUBST(LD_SWITCH_X_SITE_AUX
  AC_SUBST(LD_SWITCH_X_SITE_AUX_RPATH)
  
  if test "${x_includes}" != NONE && test -n "${x_includes}"; then
 -  C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
 +  C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
  fi
  
  if test x"${x_includes}" = x; then
@@@ -2668,7 -2589,7 +2668,7 @@@ AC_SUBST(LIBGPM
  dnl Check for malloc/malloc.h on darwin
  AC_CHECK_HEADER(malloc/malloc.h, [AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.])])
  
C_SWITCH_X_SYSTEM=
GNUSTEP_CFLAGS=
  ### Use NeXTstep API to implement GUI.
  if test "${HAVE_NS}" = "yes"; then
    AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on Mac OS X.])
      AC_DEFINE(NS_IMPL_GNUSTEP, 1, [Define to 1 if you are using NS windowing under GNUstep.])
      # See also .m.o rule in Makefile.in */
      # FIXME: are all these flags really needed?  Document here why.  */
-     dnl FIXME this should be renamed to GNUSTEP_CFLAGS, and only
-     dnl used in src/Makefile.in.
-     C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
+     GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
      ## Extra CFLAGS applied to src/*.m files.
      GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
    fi
@@@ -3301,7 -3220,7 +3299,7 @@@ AC_SUBST(gameuser
  ## end of LIBX_BASE, but nothing ever set it.
  AC_SUBST(LD_SWITCH_X_SITE)
  AC_SUBST(C_SWITCH_X_SITE)
- AC_SUBST(C_SWITCH_X_SYSTEM)
+ AC_SUBST(GNUSTEP_CFLAGS)
  AC_SUBST(CFLAGS)
  ## Used in lwlib/Makefile.in.
  AC_SUBST(X_TOOLKIT_TYPE)
@@@ -3881,6 -3800,13 +3879,13 @@@ to run if these resources are not insta
     echo
  fi
  
+ if test "${opsys}" = "cygwin"; then
+   case `uname -r` in
+     1.5.*) AC_MSG_WARN([[building Emacs on Cygwin 1.5 is not supported.]])
+            echo
+          ;;
+   esac
+ fi
  
  # Remove any trailing slashes in these variables.
  [test "${prefix}" != NONE &&
diff --combined etc/NEWS
+++ b/etc/NEWS
@@@ -22,13 -22,6 +22,13 @@@ so we will look at it and add it to th
  
  \f
  * 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.
 +
  \f
  * Startup Changes in Emacs 24.2
  
@@@ -44,12 -37,30 +44,30 @@@ been adding them there, put them somewh
  
  \f
  * Editing Changes in Emacs 24.2
+ ** M-x move-to-column, if called interactively with no prefix arg, now
+ prompts for a column number.
+ ** `mouse-avoidance-banish-position' can now be used to customize
+ `mouse-avoidance-mode' further.
+ ** `C-M-f' and `C-M-b' will now move to the path name separator
+ character when doing minibuffer filename prompts.
  \f
  * Changes in Specialized Modes and Packages in Emacs 24.2
  
+ ** which-function-mode now applies to all applicable major modes by default.
  ** erc will look up server/channel names via auth-source and use the
     channel keys found, if any.
  
+ ** Obsolete packages:
+ *** mailpost.el
+ *** mouse-sel.el
  \f
  * New Modes and Packages in Emacs 24.2
  \f
diff --combined lib-src/ChangeLog
@@@ -1,10 -1,8 +1,14 @@@
- 2012-04-09  Paul Eggert  <eggert@cs.ucla.edu>
 -2012-04-14  Juanma Barranquero  <lekktu@gmail.com>
++2012-04-14  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      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-14  Juanma Barranquero  <lekktu@gmail.com>
+       * emacsclient.c (decode_options) [WINDOWSNT]:
+       Call ttyname instead of passing its address (typo in 2011-12-04T17:13:01Z!lekktu@gmail.com).
  2012-04-07  Eli Zaretskii  <eliz@gnu.org>
  
        * makefile.w32-in (obj): Add xml.o.
diff --combined lwlib/ChangeLog
@@@ -1,10 -1,8 +1,15 @@@
- 2012-04-09  Paul Eggert  <eggert@cs.ucla.edu>
++2012-04-14  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      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  <rgm@gnu.org>
+       * Makefile.in (C_SWITCH_X_SYSTEM): Remove.
+       (ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM.
  2011-10-13  Dmitry Antipov  <dmantipov@yandex.ru>
  
        * lwlib-Xaw.c (openFont, xaw_destroy_instance): Replace free with
  ;; coding: utf-8
  ;; End:
  
-   Copyright (C) 1995-1999, 2001-2012  Free Software Foundation, Inc.
+   Copyright (C) 1995-1999, 2001-2012 Free Software Foundation, Inc.
  
    This file is part of GNU Emacs.
  
diff --combined lwlib/Makefile.in
@@@ -1,5 -1,5 +1,5 @@@
  # Copyright (C) 1992, 1993 Lucid, Inc.
- # Copyright (C) 1994, 2001-2012  Free Software Foundation, Inc.
+ # Copyright (C) 1994, 2001-2012 Free Software Foundation, Inc.
  #
  # This file is part of the Lucid Widget Library.
  #
@@@ -26,12 -26,10 +26,11 @@@ srcdir=@srcdir
  VPATH=@srcdir@
  @SET_MAKE@
  C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
- C_SWITCH_X_SYSTEM=@C_SWITCH_X_SYSTEM@
  C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
  C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
 -C_WARNINGS_SWITCH = @C_WARNINGS_SWITCH@
  PROFILING_CFLAGS = @PROFILING_CFLAGS@
 +WARN_CFLAGS = `echo @WARN_CFLAGS@ | sed 's/ -Wwrite-strings//'`
 +WERROR_CFLAGS = @WERROR_CFLAGS@
  
  CC=@CC@
  CFLAGS=@CFLAGS@
@@@ -54,9 -52,8 +53,8 @@@ OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-ut
  ## $(srcdir) is where the lwlib sources are.
  ## There are no generated lwlib files, hence no need for -I.
  ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
-   $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) \
-   $(WARN_CFLAGS) $(WERROR_CFLAGS) \
-   $(PROFILING_CFLAGS) $(CFLAGS) \
+   $(C_SWITCH_MACHINE) \
 -  $(C_WARNINGS_SWITCH) $(PROFILING_CFLAGS) $(CFLAGS) \
++  $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
    -DHAVE_CONFIG_H -Demacs -I../src \
    -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
  
diff --combined oldXMenu/ChangeLog
@@@ -1,10 -1,8 +1,15 @@@
- 2012-04-09  Paul Eggert  <eggert@cs.ucla.edu>
++2012-04-14  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      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  <rgm@gnu.org>
+       * Makefile.in (C_SWITCH_X_SYSTEM): Remove.
+       (ALL_CFLAGS): Remove C_SWITCH_X_SYSTEM.
  2011-04-16  Paul Eggert  <eggert@cs.ucla.edu>
  
        Static checks with GCC 4.6.0 and non-default toolkits.
  ;; coding: utf-8
  ;; End:
  
-   Copyright (C) 1993-1999, 2001-2012  Free Software Foundation, Inc.
+   Copyright (C) 1993-1999, 2001-2012 Free Software Foundation, Inc.
  
    This file is part of GNU Emacs.
  
diff --combined oldXMenu/Makefile.in
@@@ -1,4 -1,4 +1,4 @@@
--## Makefile for oldXMenu 
++## Makefile for oldXMenu
  
  ## Copyright 1985, 1986, 1987 by the Massachusetts Institute of Technology
  
@@@ -15,7 -15,7 +15,7 @@@
  ## without express or implied warranty.
  
  
- ## Copyright (C) 2001-2012  Free Software Foundation, Inc.
+ ## Copyright (C) 2001-2012 Free Software Foundation, Inc.
  
  ## This program is free software: you can redistribute it and/or modify
  ## it under the terms of the GNU General Public License as published by
  srcdir=@srcdir@
  VPATH=@srcdir@
  C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
- C_SWITCH_X_SYSTEM=@C_SWITCH_X_SYSTEM@
  C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
  C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
 -C_WARNINGS_SWITCH = @C_WARNINGS_SWITCH@
  PROFILING_CFLAGS = @PROFILING_CFLAGS@
 +WARN_CFLAGS = @WARN_CFLAGS@
 +WERROR_CFLAGS = @WERROR_CFLAGS@
  
  EXTRA=insque.o
  CC=@CC@
@@@ -89,8 -87,8 +88,8 @@@ OBJS =  Activate.o 
  all:: libXMenu11.a
  
  ALL_CFLAGS=$(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
-   $(C_SWITCH_X_SITE) $(C_SWITCH_X_SYSTEM) \
-   $(WARN_CFLAGS) $(WERROR_CFLAGS) ${C_WARNINGS_SWITCH} ${PROFILING_CFLAGS} \
+   $(C_SWITCH_X_SITE) \
 -  ${C_WARNINGS_SWITCH} ${PROFILING_CFLAGS} \
++  $(WARN_CFLAGS) $(WERROR_CFLAGS) ${PROFILING_CFLAGS} \
    $(CPPFLAGS) $(CFLAGS) -DEMACS_BITMAP_FILES \
    -I../src -I${srcdir} -I${srcdir}/../src
  
diff --combined src/ChangeLog
@@@ -1,16 -1,44 +1,57 @@@
- 2012-04-10  Paul Eggert  <eggert@cs.ucla.edu>
++2012-04-14  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      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-14  Atsuo Ohki  <ohki@gssm.otsuka.tsukuba.ac.jp>  (tiny change)
+       * lread.c (lisp_file_lexically_bound_p):
+       Fix hang at ";-*-\n" (bug#11238).
+ 2012-04-14  Eli Zaretskii  <eliz@gnu.org>
+       * xdisp.c (find_last_unchanged_at_beg_row): Don't consider a row
+       "unchanged" if its end.pos is beyond ZV.  (Bug#11199)
+ 2012-04-14  Jan Djärv  <jan.h.d@swipnet.se>
+       * nsterm.m (constrainFrameRect): Always constrain when there is only
+       one screen (Bug#10962).
+ 2012-04-13  Ken Brown  <kbrown@cornell.edu>
+       * s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor.
+ 2012-04-13  Reuben Thomas  <rrt@sc3d.org>
+       * indent.c (Fmove_to_column): Change interactive spec (Bug#739).
+ 2012-04-11  Daniel Colascione  <dancol@dancol.org>
+       * s/cygwin.h: The vfork the #define in cygwin.h was protecting
+       against is gone.  It's better to use vfork now so that when Cygwin
+       gains a new, working vfork, we use it automatically (bug#10398).
+ 2012-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * window.c (save_window_save): Obey window-point-insertion-type.
+ 2012-04-11  Glenn Morris  <rgm@gnu.org>
+       * Makefile.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM.
+ 2012-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * alloc.c (lisp_align_malloc): Remove unneeded prototype.
  2012-04-10  "Jason S. Cornez"  <jcornez@ravenpack.com>  (tiny change)
  
        * keyboard.c: Override inhibit-quit after the third C-g (bug#6585).
@@@ -9747,7 -9775,7 +9788,7 @@@ See ChangeLog.11 for earlier changes
  ;; coding: utf-8
  ;; End:
  
-   Copyright (C) 2011-2012  Free Software Foundation, Inc.
+   Copyright (C) 2011-2012 Free Software Foundation, Inc.
  
    This file is part of GNU Emacs.
  
diff --combined src/Makefile.in
@@@ -68,24 -68,20 +68,21 @@@ OTHER_FILES = @OTHER_FILES
  PROFILING_CFLAGS = @PROFILING_CFLAGS@
  
  ## Flags to pass to the compiler to enable build warnings
 -C_WARNINGS_SWITCH = @C_WARNINGS_SWITCH@
 +WARN_CFLAGS = @WARN_CFLAGS@
 +WERROR_CFLAGS = @WERROR_CFLAGS@
  
  ## Machine-specific CFLAGS.
  C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
  ## System-specific CFLAGS.
  C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
  
- ## Currently only set if NS_IMPL_GNUSTEP.
- ## C_SWITCH_X_SITE may override this.
- C_SWITCH_X_SYSTEM=@C_SWITCH_X_SYSTEM@
+ GNUSTEP_CFLAGS=@GNUSTEP_CFLAGS@
  
  ## Define C_SWITCH_X_SITE to contain any special flags your compiler
  ## may need to deal with X Windows.  For instance, if you've defined
  ## HAVE_X_WINDOWS and your X include files aren't in a place that your
  ## compiler can find on its own, you might want to add "-I/..." or
  ## something similar.  This is normally set by configure.
- ## This is used before C_SWITCH_X_SYSTEM and may override it.
  C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
  
  ## Define LD_SWITCH_X_SITE to contain any special flags your loader
@@@ -303,19 -299,16 +300,16 @@@ MKDEPDIR=@MKDEPDIR
  ## -DHAVE_CONFIG_H is needed for some other files to take advantage of
  ## the information in `config.h'.
  ##
- ## C_SWITCH_X_SITE must come before C_SWITCH_X_SYSTEM
- ## since it may have -I options that should override those.
- ##
  ## FIXME? MYCPPFLAGS only referenced in etc/DEBUG.
  ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I$(srcdir) \
    -I$(lib) -I$(srcdir)/../lib \
    $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
-   $(C_SWITCH_X_SYSTEM) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \
+   $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \
    $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \
    $(SETTINGS_CFLAGS) $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS) \
    $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) $(PROFILING_CFLAGS) \
    $(LIBGNUTLS_CFLAGS) \
 -  $(C_WARNINGS_SWITCH) $(CFLAGS)
 +  $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS)
  ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS)
  
  .SUFFIXES: .m