[4/5] Export cgraph_externally_visible_p.

Message ID 864950c3-211d-e7d9-db0c-e15cf5e6e81e@theobroma-systems.com
State New
Headers show
Series
  • ipa-initcall-cp
Related show

Commit Message

Erick Ochoa May 29, 2020, 5:31 p.m.
---
  gcc/ipa-ref.h        | 2 +-
  gcc/ipa-visibility.c | 5 ++---
  2 files changed, 3 insertions(+), 4 deletions(-)

      node = node->get_alias_target ();
-- 
2.18.1

Patch

diff --git a/gcc/ipa-ref.h b/gcc/ipa-ref.h
index 95e29605548..9ff26e2693c 100644
--- a/gcc/ipa-ref.h
+++ b/gcc/ipa-ref.h
@@ -139,5 +139,5 @@  public:

  const char *
  stringify_ipa_ref_use (const ipa_ref_use use);
-
+bool cgraph_externally_visible_p (struct cgraph_node *, bool);
  #endif /* GCC_IPA_REF_H */
diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c
index 7c854f471e8..8397cc9d61d 100644
--- a/gcc/ipa-visibility.c
+++ b/gcc/ipa-visibility.c
@@ -186,9 +186,8 @@  comdat_can_be_unshared_p (symtab_node *node)

  /* Return true when function NODE should be considered externally 
visible.  */

-static bool
-cgraph_externally_visible_p (struct cgraph_node *node,
-			     bool whole_program)
+bool
+cgraph_externally_visible_p (struct cgraph_node *node, bool whole_program)
  {
    while (node->transparent_alias && node->definition)