]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/c-family/ChangeLog
diagnostics: add labeling of source ranges
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
index 3aec883dd1a5855c64fc2504ecd672097284d0aa..b94a7ae9ab7ceb37100cd1111a1d645570aa746d 100644 (file)
@@ -1,3 +1,18 @@
+2018-08-15  David Malcolm  <dmalcolm@redhat.com>
+
+       * c-format.c: Include "selftest-diagnostic.h" and
+       "gcc-rich-location.h".
+       (format_warning_at_char): Pass NULL for new label params of
+       format_warning_va.
+       (class indirection_suffix): New class.
+       (class range_label_for_format_type_mismatch): New class.
+       (format_type_warning): Move logic for generating "*" suffix to
+       class indirection_suffix.  Create "fmt_label" and "param_label"
+       to show their types, and pass them to the
+       format_warning_at_substring calls.
+       (selftest::test_type_mismatch_range_labels): New test.
+       (selftest::c_format_c_tests): Call it.
+
 2018-08-13  Martin Sebor  <msebor@redhat.com>
 
        PR tree-optimization/71625