------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-03-24 22:24 ------- > Wouldn't it be better to have DECL_ASSEMBLER_NAME use the real name? What's > the > background onthe change to DECL_ASSEMBLER_NAME?
Define "real name". In 3.4.x, as discovered by Richard, the C and C++ compilers disagree on DECL_ASSEMBLER_NAME for register variables. In 4.x, the C compiler has been changed to use the C++ idiom that seems more sensible to me: DECL_NAME is the name of the declared variable ("tp") while DECL_ASSEMBLER_NAME is the name of the variable as written in the assembly file ("%g7"). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20263