aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-04-04 11:26:29 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-04-04 09:26:29 +0000
commited2a53e7ca7aafa5fea5316c7fdebdc77fb8f327 (patch)
tree046b846b874b04d1165f5b13e3c53c3879ea4558 /gcc/cgraph.h
parente8661ad6cfb1d6773a8613270250ab69c7faa95c (diff)
downloadgcc-ed2a53e7ca7aafa5fea5316c7fdebdc77fb8f327.zip
gcc-ed2a53e7ca7aafa5fea5316c7fdebdc77fb8f327.tar.gz
gcc-ed2a53e7ca7aafa5fea5316c7fdebdc77fb8f327.tar.bz2
re PR lto/68881 (UNRESOLVED/FAIL: gcc.dg/lto/attr-weakref-1 -O2 -flto)
PR ipa/68881 * cgraph.h (symtab_node::copy_visibility_from): New function. * symtab.c (symtab_node::copy_visibility_from): New function. * ipa-visibility.c (optimize_weakref): New function. (function_and_variable_visibility): Use it. From-SVN: r234708
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index e929285..1d39d91 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -293,6 +293,9 @@ public:
/* Make DECL local. */
void make_decl_local (void);
+ /* Copy visibility from N. */
+ void copy_visibility_from (symtab_node *n);
+
/* Return desired alignment of the definition. This is NOT alignment useful
to access THIS, because THIS may be interposable and DECL_ALIGN should
be used instead. It however must be guaranteed when output definition