This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20263] [4.0/4.1 Regression] Incorrect asm for global register vars
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2005 22:24:25 -0000
- Subject: [Bug middle-end/20263] [4.0/4.1 Regression] Incorrect asm for global register vars
- References: <20050301164523.20263.rcbilson@plg.uwaterloo.ca>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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