]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
macro.c (_cpp_builtin_macro_text): Correct wording of two warnings.
authorTobias Burnus <burnus@net-b.de>
Wed, 6 Nov 2013 22:28:08 +0000 (23:28 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 6 Nov 2013 22:28:08 +0000 (23:28 +0100)
libcpp/
2013-11-06  Tobias Burnus  <burnus@net-b.de>

        * macro.c (_cpp_builtin_macro_text): Correct
        wording of two warnings.

gcc/c-family/
2013-11-06  Tobias Burnus  <burnus@net-b.de>

        * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.

gcc/
2013-11-06  Tobias Burnus  <burnus@net-b.de>

        * doc/invoke.texi (Wdate-time): Fix typo.

gcc/testsuite/
2013-11-06  Tobias Burnus  <burnus@net-b.de>

        * g++.dg/warn/wdate-time.C: Update dg-error pattern.
        * gcc.dg/wdate-time.c: Ditto.
        * gfortran.dg/wdate-time.F90: Ditto.

From-SVN: r204486

gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/wdate-time.C
gcc/testsuite/gcc.dg/wdate-time.c
gcc/testsuite/gfortran.dg/wdate-time.F90
libcpp/ChangeLog
libcpp/macro.c

index a045eec1a72095aab054806a8df01d2ad1dedec4..d9bc7c6853a730c779e9b946bde8b4fe75073987 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-06  Tobias Burnus  <burnus@net-b.de>
+
+       * doc/invoke.texi (Wdate-time): Fix typo.
+
 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
 
        * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
index 582aa9383d62f1f5e7fccc060eccab313ad14a64..4a4e0617d5bd153d2e61886a78b8367522308424 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-06  Tobias Burnus  <burnus@net-b.de>
+
+       * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
+
 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
 
        * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
index 030ee5a643d365cb3fb4a9be76f81122e132a0a9..69a068e758cc58064f022c7f7964731a1ab76691 100644 (file)
@@ -9565,6 +9565,7 @@ static const struct reason_option_codes_t option_codes[] = {
   {CPP_W_INVALID_PCH,                  OPT_Winvalid_pch},
   {CPP_W_WARNING_DIRECTIVE,            OPT_Wcpp},
   {CPP_W_LITERAL_SUFFIX,               OPT_Wliteral_suffix},
+  {CPP_W_DATE_TIME,                    OPT_Wdate_time},
   {CPP_W_NONE,                         0}
 };
 
index 00634457f120f7de226310dea8e54f29ea945e0a..f3c3b89e490802cf08577031034dcb92fc35b325 100644 (file)
@@ -4530,7 +4530,7 @@ be useful to facilitate the conversion to @code{nullptr} in C++11.
 @opindex Wdate-time
 @opindex Wno-date-time
 Warn when macros @code{__TIME__}, @code{__DATE__} or @code{__TIMESTAMP__}
-are encountered as they might prevent bit-wise-identical reproducable
+are encountered as they might prevent bit-wise-identical reproducible
 compilations.
 
 @item -Wdelete-incomplete @r{(C++ and Objective-C++ only)}
index 992989e35fc0d38ac8a3e03ec80acc13d4c9ff20..43c104296d38e449d899c77ff97f0d2ef2725943 100644 (file)
@@ -1,3 +1,9 @@
+2013-11-06  Tobias Burnus  <burnus@net-b.de>
+
+       * g++.dg/warn/wdate-time.C: Update dg-error pattern.
+       * gcc.dg/wdate-time.c: Ditto.
+       * gfortran.dg/wdate-time.F90: Ditto.
+
 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
 
        PR target/30807
index 040dd995c2e382ce9640efb7841aacc6df592d7b..0ff27b4cd6fcea4564ffc39a094197b653b41609 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Wdate-time" } */
 
-const char time[] = __TIME__;  /* { dg-warning "might prevent reproduce builds" }  */
-const char date[] = __DATE__;  /* { dg-warning "might prevent reproduce builds" }  */
-const char timestamp[] = __TIMESTAMP__;  /* { dg-warning "might prevent reproduce builds" }  */
+const char time[] = __TIME__;  /* { dg-warning "might prevent reproducible builds" }  */
+const char date[] = __DATE__;  /* { dg-warning "might prevent reproducible builds" }  */
+const char timestamp[] = __TIMESTAMP__;  /* { dg-warning "might prevent reproducible builds" }  */
index 040dd995c2e382ce9640efb7841aacc6df592d7b..0ff27b4cd6fcea4564ffc39a094197b653b41609 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Wdate-time" } */
 
-const char time[] = __TIME__;  /* { dg-warning "might prevent reproduce builds" }  */
-const char date[] = __DATE__;  /* { dg-warning "might prevent reproduce builds" }  */
-const char timestamp[] = __TIMESTAMP__;  /* { dg-warning "might prevent reproduce builds" }  */
+const char time[] = __TIME__;  /* { dg-warning "might prevent reproducible builds" }  */
+const char date[] = __DATE__;  /* { dg-warning "might prevent reproducible builds" }  */
+const char timestamp[] = __TIMESTAMP__;  /* { dg-warning "might prevent reproducible builds" }  */
index f3a4f46c0b2238ccc198c8163a94ace6785fd23d..d84fd9abd73b9e52b0b6541ad209fbe79f4c2e7c 100644 (file)
@@ -1,6 +1,6 @@
 ! { dg-do compile }
 ! { dg-options "-Wdate-time" }
-print *, __TIMESTAMP__  ! { dg-warning "might prevent reproduce builds" }
-print *, __TIME__  ! { dg-warning "might prevent reproduce builds" }
-print *, __DATE__  ! { dg-warning "might prevent reproduce builds" }
+print *, __TIMESTAMP__  ! { dg-warning "might prevent reproducible builds" }
+print *, __TIME__  ! { dg-warning "might prevent reproducible builds" }
+print *, __DATE__  ! { dg-warning "might prevent reproducible builds" }
 end
index 670affd90e763c55811d520e50e01adb3ed48dd1..64de79b287c877fd308029add0d2963a13d35ca5 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-06  Tobias Burnus  <burnus@net-b.de>
+
+       * macro.c (_cpp_builtin_macro_text): Correct
+       wording of two warnings.
+
 2013-11-05  Tobias Burnus  <burnus@net-b.de>
 
        * include/cpplib.h (CPP_W_DATE_TIME): Added.
index 3a1728d66636f4e9c4958fd5220bac41df650aec..e359d158c0359b737aca16d51763fc4b19ec3b7f 100644 (file)
@@ -233,8 +233,8 @@ _cpp_builtin_macro_text (cpp_reader *pfile, cpp_hashnode *node)
     case BT_TIMESTAMP:
       {
        if (CPP_OPTION (pfile, warn_date_time))
-         cpp_warning (pfile, CPP_W_DATE_TIME, "Macro \"%s\" might prevent "
-                      "reproduce builds", NODE_NAME (node));
+         cpp_warning (pfile, CPP_W_DATE_TIME, "macro \"%s\" might prevent "
+                      "reproducible builds", NODE_NAME (node));
 
        cpp_buffer *pbuffer = cpp_get_buffer (pfile);
        if (pbuffer->timestamp == NULL)
@@ -330,8 +330,8 @@ _cpp_builtin_macro_text (cpp_reader *pfile, cpp_hashnode *node)
     case BT_DATE:
     case BT_TIME:
       if (CPP_OPTION (pfile, warn_date_time))
-       cpp_warning (pfile, CPP_W_DATE_TIME, "Macro \"%s\" might prevent "
-                    "reproduce builds", NODE_NAME (node));
+       cpp_warning (pfile, CPP_W_DATE_TIME, "macro \"%s\" might prevent "
+                    "reproducible builds", NODE_NAME (node));
       if (pfile->date == NULL)
        {
          /* Allocate __DATE__ and __TIME__ strings from permanent