summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@seketeli.org>2013-06-02 09:03:24 +0200
committerDodji Seketeli <dodji@seketeli.org>2013-06-02 09:03:24 +0200
commitaf053c0fb21f40b826323aed7ed2d64e109ad3bb (patch)
tree3da1c04d8b2aa91eea732dc9cfe615716a691f0d
parent8a87d2f37089e8c3a4908881e36e56eb324297bd (diff)
downloadgcc-af053c0fb21f40b826323aed7ed2d64e109ad3bb.tar.gz
Only dump function decls that are actually assembled
gcc/cp/ * decl.c (wrapup_globals_for_namespace): For abi dump of functions, only emit the decl that have been assembled.
-rw-r--r--gcc/cp/decl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 01956604598..3f673b5490f 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -875,8 +875,8 @@ wrapup_globals_for_namespace (tree name_space, void* data)
abi_instr_emit_vars (vec, len);
for (tree t = level->names; t; t = TREE_CHAIN (t))
if (TREE_CODE (t) == FUNCTION_DECL
- && TREE_PUBLIC (t)
- && !DECL_BUILT_IN (t))
+ && TREE_ASM_WRITTEN (t)
+ && TREE_PUBLIC (t))
abi_instr_emit_function (t);
}
return 0;