Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Committed to trunk as r263244, under the "obvious" rule.
gcc/ChangeLog: * dumpfile.c (dump_user_location_t::dump_user_location_t): Add "const" to the "gimple *" and "rtx_insn *" parameters. * dumpfile.h (dump_user_location_t::dump_user_location_t): Likewise. (dump_location_t::dump_location_t): Likewise. --- gcc/dumpfile.c | 4 ++-- gcc/dumpfile.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c index 10e9cab..76a2ee8 100644 --- a/gcc/dumpfile.c +++ b/gcc/dumpfile.c @@ -397,7 +397,7 @@ dump_open_alternate_stream (struct dump_file_info *dfi) /* Construct a dump_user_location_t from STMT (using its location and hotness). */ -dump_user_location_t::dump_user_location_t (gimple *stmt) +dump_user_location_t::dump_user_location_t (const gimple *stmt) : m_count (), m_loc (UNKNOWN_LOCATION) { if (stmt) @@ -411,7 +411,7 @@ dump_user_location_t::dump_user_location_t (gimple *stmt) /* Construct a dump_user_location_t from an RTL instruction (using its location and hotness). */ -dump_user_location_t::dump_user_location_t (rtx_insn *insn) +dump_user_location_t::dump_user_location_t (const rtx_insn *insn) : m_count (), m_loc (UNKNOWN_LOCATION) { if (insn) diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h index 2b174e5..8de001d 100644 --- a/gcc/dumpfile.h +++ b/gcc/dumpfile.h @@ -285,10 +285,10 @@ class dump_user_location_t dump_user_location_t () : m_count (), m_loc (UNKNOWN_LOCATION) {} /* Construct from a gimple statement (using its location and hotness). */ - dump_user_location_t (gimple *stmt); + dump_user_location_t (const gimple *stmt); /* Construct from an RTL instruction (using its location and hotness). */ - dump_user_location_t (rtx_insn *insn); + dump_user_location_t (const rtx_insn *insn); /* Construct from a location_t. This one is deprecated (since it doesn't capture hotness information); it thus needs to be spelled out. */ @@ -363,7 +363,7 @@ class dump_location_t } /* Construct from a gimple statement (using its location and hotness). */ - dump_location_t (gimple *stmt, + dump_location_t (const gimple *stmt, const dump_impl_location_t &impl_location = dump_impl_location_t ()) : m_user_location (dump_user_location_t (stmt)), @@ -372,7 +372,7 @@ class dump_location_t } /* Construct from an RTL instruction (using its location and hotness). */ - dump_location_t (rtx_insn *insn, + dump_location_t (const rtx_insn *insn, const dump_impl_location_t &impl_location = dump_impl_location_t ()) : m_user_location (dump_user_location_t (insn)), -- 1.8.5.3