Commit 395bc8ad by Bin Cheng Committed by Bin Cheng

* auto-profile.c (string_table::get_index_by_decl)

	(function_instance::get_function_instance_by_decl): Avoid infinite
	recursion by using DECL_FROM_INLINE.

From-SVN: r266942
parent a0abdf22
2018-12-10 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.
2018-12-09 John David Anglin <danglin@gcc.gnu.org> 2018-12-09 John David Anglin <danglin@gcc.gnu.org>
* config.gcc (hppa*-*-linux*): Add pa/t-pa to tmake_file. Define * config.gcc (hppa*-*-linux*): Add pa/t-pa to tmake_file. Define
...@@ -470,7 +470,7 @@ string_table::get_index_by_decl (tree decl) const ...@@ -470,7 +470,7 @@ string_table::get_index_by_decl (tree decl) const
ret = get_index (lang_hooks.dwarf_name (decl, 0)); ret = get_index (lang_hooks.dwarf_name (decl, 0));
if (ret != -1) if (ret != -1)
return ret; return ret;
if (DECL_ABSTRACT_ORIGIN (decl) && DECL_ABSTRACT_ORIGIN (decl) != decl) if (DECL_FROM_INLINE (decl))
return get_index_by_decl (DECL_ABSTRACT_ORIGIN (decl)); return get_index_by_decl (DECL_ABSTRACT_ORIGIN (decl));
return -1; return -1;
...@@ -537,7 +537,7 @@ function_instance::get_function_instance_by_decl (unsigned lineno, ...@@ -537,7 +537,7 @@ function_instance::get_function_instance_by_decl (unsigned lineno,
if (ret != callsites.end ()) if (ret != callsites.end ())
return ret->second; return ret->second;
} }
if (DECL_ABSTRACT_ORIGIN (decl)) if (DECL_FROM_INLINE (decl))
return get_function_instance_by_decl (lineno, DECL_ABSTRACT_ORIGIN (decl)); return get_function_instance_by_decl (lineno, DECL_ABSTRACT_ORIGIN (decl));
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment