This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/47496] HAS_DECL_ASSEMBLER_NAME_P and DECL_ASSEMBLER_NAME has some incosistency


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]