This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Duplicate assembler function names in cgraph
- From: "Paulo J. Matos" <pocm at soton dot ac dot uk>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 16 Apr 2007 13:30:07 +0100
- Subject: Duplicate assembler function names in cgraph
Hello all,
I'm doing in my IPA pass:
for(node = cgraph_nodes; node; node = node->next) {
reg_cgraph_node(IDENTIFIER_POINTER(DECL_ASSEMBLER_NAME(node->decl)));
}
to get all the function names in the cgraph. I'm adding them to a list
and I'm assuming that two nodes do not have the same
DECL_ASSEMBLER_NAME but I'm wrong. In a C++ file I'm getting two
functions with name _ZN4listIiE6appendEPS0_, DECL_NAME = append.
Why is this? The code is at
http://pastebin.ca/442691
Is there a way to transverse the cgraph but never going through the
same twice? Or should I just ignore the node if the function name is
already registered?
Cheers,
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK