diff options
author | Jason Merrill <jason@redhat.com> | 2015-12-02 14:04:48 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-12-02 14:04:48 -0500 |
commit | f479b43da091fd3ede525b7832cd69a22fb49f9a (patch) | |
tree | a2673f4d1a0faba8a3681800dd902ffc2694cc6f /gotools | |
parent | 7426fcc84f6e0a410139f60778d8d1c1d32d0283 (diff) | |
download | gcc-f479b43da091fd3ede525b7832cd69a22fb49f9a.zip gcc-f479b43da091fd3ede525b7832cd69a22fb49f9a.tar.gz gcc-f479b43da091fd3ede525b7832cd69a22fb49f9a.tar.bz2 |
Do constant folding in warn_* functions.
gcc/c-family/
* c-common.c (fold_for_warn): New.
(warn_logical_operator, warn_tautological_cmp)
(check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
gcc/cp/
* call.c (build_new_op_1): Don't fold arguments to
warn_logical_operator or maybe_warn_bool_compare.
From-SVN: r231198
Diffstat (limited to 'gotools')
0 files changed, 0 insertions, 0 deletions