r269994 - in /trunk/gcc: ChangeLog optinfo-emit...
dmalcolm@gcc.gnu.org
dmalcolm@gcc.gnu.org
Thu Mar 28 14:40:00 GMT 2019
Author: dmalcolm
Date: Thu Mar 28 14:40:56 2019
New Revision: 269994
URL: https://gcc.gnu.org/viewcvs?rev=269994&root=gcc&view=rev
Log:
optinfo-emit-json.cc: don't call get_fnname_from_decl (PR middle-end/89725)
optrecord_json_writer::optinfo_to_json can in theory be called from any
optimization pass, but currently uses get_fnname_from_decl, which
is RTL-specific.
In that PR, Jakub suggested using either DECL_ASSEMBLER_NAME or the
"printable name" (via current_function_name).
This patch makes it use DECL_ASSEMBLER_NAME.
gcc/ChangeLog:
PR middle-end/89725
* optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/optinfo-emit-json.cc
More information about the Gcc-cvs
mailing list