aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2013-11-06 23:28:08 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2013-11-06 23:28:08 +0100
commit5157b91ea39549aba181ca118820b1f439f48b45 (patch)
treeb35137605eff9613944fbb66e44d003776bda94d /gcc
parente276866fd756cad24eb1a50c0abfceb8bf043e98 (diff)
downloadgcc-5157b91ea39549aba181ca118820b1f439f48b45.zip
gcc-5157b91ea39549aba181ca118820b1f439f48b45.tar.gz
gcc-5157b91ea39549aba181ca118820b1f439f48b45.tar.bz2
macro.c (_cpp_builtin_macro_text): Correct wording of two warnings.
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-family/ChangeLog4
-rw-r--r--gcc/c-family/c-common.c1
-rw-r--r--gcc/doc/invoke.texi2
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/warn/wdate-time.C6
-rw-r--r--gcc/testsuite/gcc.dg/wdate-time.c6
-rw-r--r--gcc/testsuite/gfortran.dg/wdate-time.F906
8 files changed, 25 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a045eec..d9bc7c6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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,
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 582aa93..4a4e061 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -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
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index 030ee5a..69a068e 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -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}
};
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 0063445..f3c3b89 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -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)}
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 992989e..43c1042 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/g++.dg/warn/wdate-time.C b/gcc/testsuite/g++.dg/warn/wdate-time.C
index 040dd99..0ff27b4 100644
--- a/gcc/testsuite/g++.dg/warn/wdate-time.C
+++ b/gcc/testsuite/g++.dg/warn/wdate-time.C
@@ -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" } */
diff --git a/gcc/testsuite/gcc.dg/wdate-time.c b/gcc/testsuite/gcc.dg/wdate-time.c
index 040dd99..0ff27b4 100644
--- a/gcc/testsuite/gcc.dg/wdate-time.c
+++ b/gcc/testsuite/gcc.dg/wdate-time.c
@@ -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" } */
diff --git a/gcc/testsuite/gfortran.dg/wdate-time.F90 b/gcc/testsuite/gfortran.dg/wdate-time.F90
index f3a4f46..d84fd9a 100644
--- a/gcc/testsuite/gfortran.dg/wdate-time.F90
+++ b/gcc/testsuite/gfortran.dg/wdate-time.F90
@@ -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