Commit c0017f91 by Ian Lance Taylor Committed by Ian Lance Taylor

re PR go/89227 (gotools test cmd/go fails with link error "call lacks nop, can't…

re PR go/89227 (gotools test cmd/go fails with link error "call lacks nop, can't restore toc; recompile with -fPIC")

	PR go/89227
	* go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
	only-inline function.

From-SVN: r269449
parent 295bae04
2019-03-06 Ian Lance Taylor <iant@golang.org>
PR go/89227
* go-gcc.cc (Gcc_backend::function): Set TREE_PUBLIC for an
only-inline function.
2019-02-15 Cherry Zhang <cherryyz@google.com>
* go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_dwarf_cfa
......
......@@ -3101,6 +3101,7 @@ Gcc_backend::function(Btype* fntype, const std::string& name,
resolve_unique_section(decl, 0, 1);
if ((flags & function_only_inline) != 0)
{
TREE_PUBLIC (decl) = 1;
DECL_EXTERNAL(decl) = 1;
DECL_DECLARED_INLINE_P(decl) = 1;
}
......
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