[Bug middle-end/47496] HAS_DECL_ASSEMBLER_NAME_P and DECL_ASSEMBLER_NAME has some incosistency
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 28 12:00:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47496
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-28 11:12:52 UTC ---
You should use
if (HAS_DECL_ASSEMBLER_NAME_P (expr)
&& DECL_ASSEMBLER_NAME_SET_P (expr))
DECL_ASSEMBLER_NAME (expr);
calling decl_assembler_name on random things is not what you should do.
More information about the Gcc-bugs
mailing list