Merge from trunk.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Apr 2012 01:22:25 +0000 (18:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Apr 2012 01:22:25 +0000 (18:22 -0700)
1  2 
src/ChangeLog

diff --combined src/ChangeLog
@@@ -1,5 -1,11 +1,11 @@@
  2012-04-16  Paul Eggert  <eggert@cs.ucla.edu>
  
+       Fix minor ralloc.c problems found by static checking.
+       See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html
+       * ralloc.c (ALIGNED, ROUND_TO_PAGE, HEAP_PTR_SIZE)
+       (r_alloc_size_in_use, r_alloc_freeze, r_alloc_thaw): Remove; unused.
+       (r_alloc_sbrk): Now static.
        Improve ralloc.c interface checking.
        See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html
        * buffer.c (ralloc_reset_variable, r_alloc, r_re_alloc)
        aligned_Lisp_Misc instead of union Lisp_Misc.
        (Fmake_symbol, allocate_misc, gc_sweep): Adjust
  
 +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  Paul Eggert  <eggert@cs.ucla.edu>
  
        Make GC_MAKE_GCPROS_NOOPS the default (Bug#9926).