diff options
author | Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> | 2016-08-19 13:17:09 +0000 |
---|---|---|
committer | Prathamesh Kulkarni <prathamesh3492@gcc.gnu.org> | 2016-08-19 13:17:09 +0000 |
commit | fcf830abf7b3fc12d6127ca500d04405ef0efe54 (patch) | |
tree | 75ec25af5dae2c4d482f058f1db7a9e65768c87b /gcc | |
parent | 1f4ed04ed884437842977fa03e0c1d014723559b (diff) | |
download | gcc-fcf830abf7b3fc12d6127ca500d04405ef0efe54.zip gcc-fcf830abf7b3fc12d6127ca500d04405ef0efe54.tar.gz gcc-fcf830abf7b3fc12d6127ca500d04405ef0efe54.tar.bz2 |
expr.c (eval_token): Append "evaluates to 0" to Wundef diagnostic.
2016-08-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
libcpp/
* expr.c (eval_token): Append "evaluates to 0" to Wundef diagnostic.
testsuite/
* gcc.dg/cpp/warn-undef.c: Append "evaluates to 0" to dg-error.
* gcc.dg/cpp/warn-undef-2.c: Likewise.
From-SVN: r239609
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/warn-undef-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/warn-undef.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4567c7e..6590fab 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-08-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> + + * gcc.dg/cpp/warn-undef.c: Append "evaluates to 0" to dg-error. + * gcc.dg/cpp/warn-undef-2.c: Likewise. + 2016-08-19 Richard Biener <rguenther@suse.de> PR tree-optimization/77286 diff --git a/gcc/testsuite/gcc.dg/cpp/warn-undef-2.c b/gcc/testsuite/gcc.dg/cpp/warn-undef-2.c index 15fdde9..e71aeba 100644 --- a/gcc/testsuite/gcc.dg/cpp/warn-undef-2.c +++ b/gcc/testsuite/gcc.dg/cpp/warn-undef-2.c @@ -1,5 +1,5 @@ // { dg-do preprocess } // { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=undef" } /* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */ -#if x // { dg-error "\"x\" is not defined .-Werror=undef." } +#if x // { dg-error "\"x\" is not defined, evaluates to 0 .-Werror=undef." } #endif diff --git a/gcc/testsuite/gcc.dg/cpp/warn-undef.c b/gcc/testsuite/gcc.dg/cpp/warn-undef.c index dd4524d..2c2c421 100644 --- a/gcc/testsuite/gcc.dg/cpp/warn-undef.c +++ b/gcc/testsuite/gcc.dg/cpp/warn-undef.c @@ -1,5 +1,5 @@ // { dg-do preprocess } // { dg-options "-std=gnu99 -fdiagnostics-show-option -Wundef" } -#if x // { dg-warning "\"x\" is not defined .-Wundef." } +#if x // { dg-warning "\"x\" is not defined, evaluates to 0 .-Wundef." } #endif |