emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114455: Merge from gnulib.


From: Paul Eggert
Subject: [Emacs-diffs] trunk r114455: Merge from gnulib.
Date: Wed, 25 Sep 2013 03:44:38 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114455
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Tue 2013-09-24 20:44:34 -0700
message:
  Merge from gnulib.
  
  This incorporates:
  2013-09-24 manywarnings: enable nicer gcc warning messages
  2013-09-23 warnings: port --enable-gcc-warnings to Solaris Studio 12.3
  2013-09-21 timespec: use the new TIMESPEC_RESOLUTION elsewhere
  * configure.ac (WERROR_CFLAGS): Omit -fdiagnostics-show-option
  and -funit-at-a-time, since manywarnings does that for us now.
modified:
  ChangeLog                      changelog-20091113204419-o5vbwnq5f7feedwu-1538
  configure.ac                   
configure.in-20091113204419-o5vbwnq5f7feedwu-783
  lib/timespec-add.c             timespecadd.c-20120622212453-poe1wduuhk4mz8vy-8
  lib/timespec-sub.c             timespecsub.c-20120622212453-poe1wduuhk4mz8vy-9
  m4/manywarnings.m4             
manywarnings.m4-20120409074357-zmklh5i58niw7z33-1
  m4/warnings.m4                 warnings.m4-20120409074357-zmklh5i58niw7z33-2
=== modified file 'ChangeLog'
--- a/ChangeLog 2013-09-23 07:12:01 +0000
+++ b/ChangeLog 2013-09-25 03:44:34 +0000
@@ -1,3 +1,12 @@
+2013-09-25  Paul Eggert  <address@hidden>
+
+       Merge from gnulib, incorporating:
+       2013-09-24 manywarnings: enable nicer gcc warning messages
+       2013-09-23 warnings: port --enable-gcc-warnings to Solaris Studio 12.3
+       2013-09-21 timespec: use the new TIMESPEC_RESOLUTION elsewhere
+       * configure.ac (WERROR_CFLAGS): Omit -fdiagnostics-show-option
+       and -funit-at-a-time, since manywarnings does that for us now.
+
 2013-09-23  Jan Djärv  <address@hidden>
 
        * configure.ac: With clang, check for and use -Wno-switch,

=== modified file 'configure.ac'
--- a/configure.ac      2013-09-23 07:12:01 +0000
+++ b/configure.ac      2013-09-25 03:44:34 +0000
@@ -886,9 +886,6 @@
     gl_WARN_ADD([-Wno-unused-value])
   fi
 
-  gl_WARN_ADD([-fdiagnostics-show-option])
-  gl_WARN_ADD([-funit-at-a-time])
-
   AC_DEFINE([lint], [1], [Define to 1 if the compiler is checking for lint.])
   AH_VERBATIM([FORTIFY_SOURCE],
   [/* Enable compile-time and run-time bounds-checking, and some warnings,

=== modified file 'lib/timespec-add.c'
--- a/lib/timespec-add.c        2013-09-19 21:40:08 +0000
+++ b/lib/timespec-add.c        2013-09-25 03:44:34 +0000
@@ -18,7 +18,7 @@
 /* Written by Paul Eggert.  */
 
 /* Return the sum of two timespec values A and B.  On overflow, return
-   an extremal value.  This assumes 0 <= tv_nsec <= 999999999.  */
+   an extremal value.  This assumes 0 <= tv_nsec < TIMESPEC_RESOLUTION.  */
 
 #include <config.h>
 #include "timespec.h"
@@ -58,7 +58,7 @@
         {
         high_overflow:
           rs = TYPE_MAXIMUM (time_t);
-          rns = 999999999;
+          rns = TIMESPEC_RESOLUTION - 1;
         }
     }
   else

=== modified file 'lib/timespec-sub.c'
--- a/lib/timespec-sub.c        2013-09-19 21:40:08 +0000
+++ b/lib/timespec-sub.c        2013-09-25 03:44:34 +0000
@@ -18,8 +18,8 @@
 /* Written by Paul Eggert.  */
 
 /* Return the difference between two timespec values A and B.  On
-   overflow, return an extremal value.  This assumes 0 <= tv_nsec <=
-   999999999.  */
+   overflow, return an extremal value.  This assumes 0 <= tv_nsec <
+   TIMESPEC_RESOLUTION.  */
 
 #include <config.h>
 #include "timespec.h"
@@ -58,7 +58,7 @@
       else
         {
           rs = TYPE_MAXIMUM (time_t);
-          rns = 999999999;
+          rns = TIMESPEC_RESOLUTION - 1;
         }
     }
   else

=== modified file 'm4/manywarnings.m4'
--- a/m4/manywarnings.m4        2013-05-16 07:10:39 +0000
+++ b/m4/manywarnings.m4        2013-09-25 03:44:34 +0000
@@ -1,4 +1,4 @@
-# manywarnings.m4 serial 5
+# manywarnings.m4 serial 6
 dnl Copyright (C) 2008-2013 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -204,6 +204,8 @@
     -Wvla \
     -Wvolatile-register-var \
     -Wwrite-strings \
+    -fdiagnostics-show-option \
+    -funit-at-a-time \
     \
     ; do
     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"

=== modified file 'm4/warnings.m4'
--- a/m4/warnings.m4    2013-08-19 05:23:05 +0000
+++ b/m4/warnings.m4    2013-09-25 03:44:34 +0000
@@ -1,4 +1,4 @@
-# warnings.m4 serial 10
+# warnings.m4 serial 11
 dnl Copyright (C) 2008-2013 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -36,9 +36,9 @@
   gl_save_compiler_FLAGS="$gl_Flags"
   gl_AS_VAR_APPEND(m4_defn([gl_Flags]),
     [" $gl_unknown_warnings_are_errors ]m4_defn([gl_Positive])["])
-  AC_COMPILE_IFELSE([m4_default([$4], [AC_LANG_PROGRAM([])])],
-                    [AS_VAR_SET(gl_Warn, [yes])],
-                    [AS_VAR_SET(gl_Warn, [no])])
+  AC_LINK_IFELSE([m4_default([$4], [AC_LANG_PROGRAM([])])],
+                 [AS_VAR_SET(gl_Warn, [yes])],
+                 [AS_VAR_SET(gl_Warn, [no])])
   gl_Flags="$gl_save_compiler_FLAGS"
 ])
 AS_VAR_IF(gl_Warn, [yes], [$2], [$3])


reply via email to

[Prev in Thread] Current Thread [Next in Thread]