summaryrefslogtreecommitdiff
path: root/gcc/lto-symtab.c
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-09 11:46:25 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-09 11:46:25 +0000
commit883554eb10ec811c13458b4153fe24da738f8e23 (patch)
treebd59306e865ec5d8977d9b28fa471840fefb7dca /gcc/lto-symtab.c
parentb0e7825e8224e344c8b099e3c635d9854ae04ff0 (diff)
downloadgcc-883554eb10ec811c13458b4153fe24da738f8e23.tar.gz
gcc/
2012-10-08 Tobias Burnus <burnus@net-b.de> * lto-cgraph.c (input_node_opt_summary): Remove unused code. * lto-opts.c (append_to_collect_gcc_options): Fix condition. * lto-symtab.c (lto_cgraph_replace_node): Don't xstrdup string which is passed to fprintf. gcc/lto/ 2012-10-08 Tobias Burnus <burnus@net-b.de> * lto-lang.c (lto_register_builtin_type): Avoid useless decl creation. * lto-object.c (lto_obj_file_open, lto_obj_file_open): Free memory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192250 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-symtab.c')
-rw-r--r--gcc/lto-symtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/lto-symtab.c b/gcc/lto-symtab.c
index 25c0b22dc48..659a68b68a5 100644
--- a/gcc/lto-symtab.c
+++ b/gcc/lto-symtab.c
@@ -46,8 +46,8 @@ lto_cgraph_replace_node (struct cgraph_node *node,
{
fprintf (cgraph_dump_file, "Replacing cgraph node %s/%i by %s/%i"
" for symbol %s\n",
- xstrdup (cgraph_node_name (node)), node->uid,
- xstrdup (cgraph_node_name (prevailing_node)),
+ cgraph_node_name (node), node->uid,
+ cgraph_node_name (prevailing_node),
prevailing_node->uid,
IDENTIFIER_POINTER ((*targetm.asm_out.mangle_assembler_name)
(IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (node->symbol.decl)))));