Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc.old/dist/gcc Do the same song and dance fo...



details:   https://anonhg.NetBSD.org/src/rev/c2dac71a34c1
branches:  trunk
changeset: 814164:c2dac71a34c1
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 10 03:50:47 2016 +0000

description:
Do the same song and dance for functions.

diffstat:

 external/gpl3/gcc.old/dist/gcc/varasm.c |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r 0dba0d617064 -r c2dac71a34c1 external/gpl3/gcc.old/dist/gcc/varasm.c
--- a/external/gpl3/gcc.old/dist/gcc/varasm.c   Thu Mar 10 03:22:13 2016 +0000
+++ b/external/gpl3/gcc.old/dist/gcc/varasm.c   Thu Mar 10 03:50:47 2016 +0000
@@ -6659,6 +6659,17 @@
       else if (vnode && resolution_local_p (vnode->symbol.resolution))
        resolved_locally = true;
     }
+  else if (TREE_CODE (exp) == FUNCTION_DECL && TREE_PUBLIC (exp))
+    {
+      struct cgraph_node *cnode = cgraph_get_node (exp);
+      if (cnode && cnode->symbol.in_other_partition)
+       defined_locally = true;
+      if (cnode && resolution_to_local_definition_p (cnode->symbol.resolution))
+       defined_locally = resolved_locally = true;
+      else if (cnode && resolution_local_p (cnode->symbol.resolution))
+       resolved_locally = true;
+    }
+
   if (defined_locally && weak_dominate && !shlib)
     resolved_locally = true;
 



Home | Main Index | Thread Index | Old Index