mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-10-03 23:48:37 +00:00
Fix missing range information for "%q+D" format code
gcc/c-family/ChangeLog: * c-common.c (c_cpp_error): Update for change to rich_location::set_range. gcc/fortran/ChangeLog: * error.c (gfc_format_decoder): Update for change of text_info::set_range to text_info::set_location. gcc/ChangeLog: * pretty-print.c (text_info::set_range): Rename to... (text_info::set_location): ...this, converting 2nd param from source_range to a location_t. * pretty-print.h (text_info::set_location): Convert from inline function to external definition. (text_info::set_range): Delete. gcc/testsuite/ChangeLog: * gcc.dg/diagnostic-ranges-1.c: New test file. * gcc.dg/plugin/diagnostic-test-show-locus-bw.c (test_percent_q_plus_d): New test function. * gcc.dg/plugin/diagnostic_plugin_test_show_locus.c (test_show_locus): Rewrite test code using rich_location::set_range. Add code to unit-test the "%q+D" format code. libcpp/ChangeLog: * include/line-map.h (rich_location::set_range): Add line_maps * param; convert param from source_range to source_location. Drop "overwrite_loc_p" param. * line-map.c (rich_location::set_range): Likewise, acting as if "overwrite_loc_p" were true, and getting range from the location. From-SVN: r231367
This commit is contained in:
committed by
David Malcolm
parent
4f6788a171
commit
f79520bb11
@@ -1,3 +1,11 @@
|
||||
2015-12-07 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* include/line-map.h (rich_location::set_range): Add line_maps *
|
||||
param; convert param from source_range to source_location. Drop
|
||||
"overwrite_loc_p" param.
|
||||
* line-map.c (rich_location::set_range): Likewise, acting as if
|
||||
"overwrite_loc_p" were true, and getting range from the location.
|
||||
|
||||
2015-11-20 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
PR 62314
|
||||
|
||||
Reference in New Issue
Block a user