summaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>2016-08-19 13:17:09 +0000
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>2016-08-19 13:17:09 +0000
commitfcf830abf7b3fc12d6127ca500d04405ef0efe54 (patch)
tree75ec25af5dae2c4d482f058f1db7a9e65768c87b /libcpp
parent1f4ed04ed884437842977fa03e0c1d014723559b (diff)
downloadgcc-fcf830abf7b3fc12d6127ca500d04405ef0efe54.tar.gz
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 'libcpp')
-rw-r--r--libcpp/ChangeLog4
-rw-r--r--libcpp/expr.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 5d4a09450e0..e8e43f7285b 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,7 @@
+2016-08-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+
+ * expr.c (eval_token): Append "evaluates to 0" to Wundef diagnostic.
+
2016-08-18 David Malcolm <dmalcolm@redhat.com>
* directives.c (directive_names): New array.
diff --git a/libcpp/expr.c b/libcpp/expr.c
index 5cdca6f1bec..d32f5a97189 100644
--- a/libcpp/expr.c
+++ b/libcpp/expr.c
@@ -1073,7 +1073,7 @@ eval_token (cpp_reader *pfile, const cpp_token *token,
result.low = 0;
if (CPP_OPTION (pfile, warn_undef) && !pfile->state.skip_eval)
cpp_warning_with_line (pfile, CPP_W_UNDEF, virtual_location, 0,
- "\"%s\" is not defined",
+ "\"%s\" is not defined, evaluates to 0",
NODE_NAME (token->val.node.node));
}
break;