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/b266a1b17999
branches: trunk
changeset: 344022:b266a1b17999
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 2b99392e6ebc -r b266a1b17999 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