[PATCH] Add instruction level discriminator support.
Andi Kleen
ak@linux.intel.com
Sun Jun 12 23:53:20 GMT 2022
Eugene Rozenfeld via Gcc-patches <gcc-patches@gcc.gnu.org> writes:
> {
> diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
> index d1dc73724d1..5ed6b7b0f94 100644
> --- a/gcc/cp/module.cc
> +++ b/gcc/cp/module.cc
> @@ -15587,6 +15587,8 @@ module_state::write_location (bytes_out &sec, location_t loc)
> range.m_start = UNKNOWN_LOCATION;
> write_location (sec, range.m_start);
> write_location (sec, range.m_finish);
> + unsigned discriminator = get_discriminator_from_adhoc_loc (line_table, loc);
> + sec.u (discriminator);
I hope this has a corresponding reader change, wasn't fully
clear. Should it use some common function?
The patch looks good to me, but I cannot approve.
-Andi
More information about the Gcc-patches
mailing list