From: Paul Eggert Date: Mon, 9 Apr 2012 19:51:06 +0000 (-0700) Subject: Merge from trunk; add Bug#. X-Git-Tag: emacs-24.2.90~471^2~368 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f46df23a3d01f82a24f2a3dd8730f0263fa9fde;p=emacs.git Merge from trunk; add Bug#. --- 9f46df23a3d01f82a24f2a3dd8730f0263fa9fde diff --cc ChangeLog index 8f7ccc573af,a1b9a9ca7df..8d89e361c59 --- a/ChangeLog +++ b/ChangeLog @@@ -1,20 -1,9 +1,26 @@@ +2012-04-09 Paul Eggert + - configure: new option --enable-gcc-warnings ++ 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-09 Teodor Zlatanov + + * info/dir (File): + * Makefile.in: Add emacs-gnutls to the info directory and the + INFO_FILES target. + 2012-04-09 Glenn Morris * Makefile.in (leim): Check cd return value. Pass fewer variables. diff --cc etc/NEWS index dd302a052d6,a1ef62c0bd6..2e11af4c1c3 --- a/etc/NEWS +++ b/etc/NEWS @@@ -22,15 -22,13 +22,20 @@@ 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. + * Startup Changes in Emacs 24.2 + + ** Emacs no longer searches for `leim-list.el' files beneath the standard + lisp/ directory. There should not be any there anyway. If you have + been adding them there, put them somewhere else, eg site-lisp. + * Changes in Emacs 24.2 diff --cc lib-src/ChangeLog index 86b92b5b84a,aad382de6d0..a9ad2a97ea3 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@@ -1,10 -1,3 +1,10 @@@ +2012-04-09 Paul Eggert + - configure: new option --enable-gcc-warnings ++ 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-07 Eli Zaretskii * makefile.w32-in (obj): Add xml.o. diff --cc lwlib/ChangeLog index f4800bc4bb0,a4bb243f35d..b7751f90a91 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog @@@ -1,10 -1,3 +1,10 @@@ +2012-04-09 Paul Eggert + - configure: new option --enable-gcc-warnings ++ 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. + 2011-10-13 Dmitry Antipov * lwlib-Xaw.c (openFont, xaw_destroy_instance): Replace free with diff --cc oldXMenu/ChangeLog index f5d65b49671,1d3091c6bb4..87dadb2745e --- a/oldXMenu/ChangeLog +++ b/oldXMenu/ChangeLog @@@ -1,10 -1,3 +1,10 @@@ +2012-04-09 Paul Eggert + - configure: new option --enable-gcc-warnings ++ 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. + 2011-04-16 Paul Eggert Static checks with GCC 4.6.0 and non-default toolkits. diff --cc src/ChangeLog index df3336b52e1,f7889d99335..7027e9e5a95 --- a/src/ChangeLog +++ b/src/ChangeLog @@@ -1,16 -1,35 +1,48 @@@ +2012-04-09 Paul Eggert + - configure: new option --enable-gcc-warnings ++ 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-09 Teodor Zlatanov + + * process.c (make_process): + * process.h: Add integer `gnutls_handshakes_tried' member to + process struct. + + * gnutls.h: Add `GNUTLS_EMACS_HANDSHAKES_LIMIT' upper limit. Add + convenience `GNUTLS_LOG2i' macro. + + * gnutls.c (gnutls_log_function2i): Convenience log function. + (emacs_gnutls_read): Use new log functions, + `gnutls_handshakes_tried' process member, and + `GNUTLS_EMACS_HANDSHAKES_LIMIT' to limit the number of handshake + attempts per process (connection). + + 2012-04-09 Chong Yidong + + * eval.c (Fuser_variable_p, user_variable_p_eh) + (lisp_indirect_variable): Functions deleted. + (Fdefvar): Caller changed. + + * callint.c (Finteractive, Fcall_interactively): + * minibuf.c (Fread_variable): Callers changed. + + 2012-04-09 Eli Zaretskii + + * xdisp.c (set_cursor_from_row): If the display string appears in + the buffer at position that is closer to point than the position + after the display string, display the cursor on the first glyph of + the display string. Fixes cursor display when a 'display' text + property immediately follows invisible text. (Bug#11094) + 2012-04-09 Paul Eggert composite.c: use 'double' consistently