aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-gcc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/go-gcc.cc')
-rw-r--r--gcc/go/go-gcc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc
index daa1ab2..1a52d9b 100644
--- a/gcc/go/go-gcc.cc
+++ b/gcc/go/go-gcc.cc
@@ -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;
}