aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2016-10-20 14:00:46 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2016-10-20 14:00:46 +0000
commiteff89e01b880e6f058ae136935d70c743bc852b6 (patch)
treeb91dfa52b5d5bada60417c5f2abf6b71a05cfaf5 /gcc
parent24bc7bf417e407e9fbfacffcd1b61a619f4463f8 (diff)
downloadgcc-eff89e01b880e6f058ae136935d70c743bc852b6.zip
gcc-eff89e01b880e6f058ae136935d70c743bc852b6.tar.gz
gcc-eff89e01b880e6f058ae136935d70c743bc852b6.tar.bz2
c-common.c (c_common_truthvalue_conversion): Fix the comment.
2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de> * c-common.c (c_common_truthvalue_conversion): Fix the comment. From-SVN: r241377
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-family/ChangeLog4
-rw-r--r--gcc/c-family/c-common.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index ae399ea..b16b1c1 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,7 @@
+2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * c-common.c (c_common_truthvalue_conversion): Fix the comment.
+
2016-10-20 Jason Merrill <jason@redhat.com>
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index 8af3ad5..abc0740 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -3328,7 +3328,7 @@ c_common_truthvalue_conversion (location_t location, tree expr)
TREE_OPERAND (expr, 0));
case LSHIFT_EXPR:
- /* We will only warn on unsigned shifts here, because the majority of
+ /* We will only warn on signed shifts here, because the majority of
false positive warnings happen in code where unsigned arithmetic
was used in anticipation of a possible overflow.
Furthermore, if we see an unsigned type here we know that the