aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/ChangeLog
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-01-10 12:49:03 -0500
committerJason Merrill <jason@redhat.com>2020-01-21 18:40:19 -0500
commit731dbfc3f3b586e78f2ccdca24561ea3369c6338 (patch)
tree09c32959a13bc55ae6e02299dbec36f1b85d56ca /gcc/c-family/ChangeLog
parent0501b74264e93bf9ebf45cf10a624a549dc474f1 (diff)
downloadgcc-731dbfc3f3b586e78f2ccdca24561ea3369c6338.zip
gcc-731dbfc3f3b586e78f2ccdca24561ea3369c6338.tar.gz
gcc-731dbfc3f3b586e78f2ccdca24561ea3369c6338.tar.bz2
Handle -Wsign-conversion in conversion_warning.
It seemed strange to me to warn about sign conversion in unsafe_conversion_p, when other warnings are in conversion_warning, and the latter function is the only place that asks the former function to warn. This change is also necessary for my -Warith-conversion patch. * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN. * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
Diffstat (limited to 'gcc/c-family/ChangeLog')
-rw-r--r--gcc/c-family/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index fdddb98..fbbc924 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-21 Jason Merrill <jason@redhat.com>
+
+ * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN.
+ * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN.
+
2020-01-20 Nathan Sidwell <nathan@acm.org>
PR preprocessor/80005