[PATCH AutoFDO/1]Avoid infinite recursion for inlined function decl tracing

bin.cheng bin.cheng@linux.alibaba.com
Wed Oct 31 08:10:00 GMT 2018


Hi,
This simple patch avoids infinite recursion when tracing inlined function decl by using
pre-defined macro DECL_FROM_INLINE in tree.h.

Bootstrap and test on x86_64 in patch set.  Is it OK?

Thanks,
bin

2018-10-31  Bin Cheng  <bin.cheng@linux.alibaba.com>

	* auto-profile.c (string_table::get_index_by_decl)
	(function_instance::get_function_instance_by_decl): Avoid infinite
	recursion by using DECL_FROM_INLINE.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-infinite-recursion-at-self-DECL_ABSTRACT_ORIGI.patch
Type: application/octet-stream
Size: 1148 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181031/96ac00bf/attachment.obj>


More information about the Gcc-patches mailing list