aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-10-21 13:04:20 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2011-10-21 11:04:20 +0000
commit25e2c40dd7dd02ff9f5610f7d2ffdef993bb32b8 (patch)
tree29bdffd75d1c506f358ffd6cda8765372ce7fae1 /gcc/cgraph.c
parent49008cb98e890a588788661fb00763910a891b38 (diff)
downloadgcc-25e2c40dd7dd02ff9f5610f7d2ffdef993bb32b8.zip
gcc-25e2c40dd7dd02ff9f5610f7d2ffdef993bb32b8.tar.gz
gcc-25e2c40dd7dd02ff9f5610f7d2ffdef993bb32b8.tar.bz2
cgraph.c (dump_cgraph_node): Dump alias flag.
* cgraph.c (dump_cgraph_node): Dump alias flag. * cgraphunit.c (handle_alias_pairs): Handle weakrefs with no destination. (get_alias_symbol): New function. (output_weakrefs): Output also weakrefs with no destinatoin. (lto_output_node): Output weakref alias flag when at function boundary. From-SVN: r180292
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 84d6bd5..f056d3d 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -1838,6 +1838,8 @@ dump_cgraph_node (FILE *f, struct cgraph_node *node)
fprintf (f, " only_called_at_startup");
if (node->only_called_at_exit)
fprintf (f, " only_called_at_exit");
+ else if (node->alias)
+ fprintf (f, " alias");
fprintf (f, "\n");
@@ -2567,7 +2569,7 @@ cgraph_for_node_thunks_and_aliases (struct cgraph_node *node,
for (e = node->callers; e; e = e->next_caller)
if (e->caller->thunk.thunk_p
&& (include_overwritable
- || cgraph_function_body_availability (e->caller)))
+ || cgraph_function_body_availability (e->caller) > AVAIL_OVERWRITABLE))
if (cgraph_for_node_thunks_and_aliases (e->caller, callback, data,
include_overwritable))
return true;