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/20263] [4.0/4.1 Regression] Incorrect asm for global register vars


------- 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


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