aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2005-03-29 14:08:54 +0200
committerEric Botcazou <ebotcazou@gcc.gnu.org>2005-03-29 12:08:54 +0000
commit360ca05451bc04b337dafba99460472f5aebdc3e (patch)
tree514cd477a850012502ca1974a42b47cb3cb03d19 /gcc/varasm.c
parent1f1e85278aee66245bf2258c372216635436ced4 (diff)
downloadgcc-360ca05451bc04b337dafba99460472f5aebdc3e.zip
gcc-360ca05451bc04b337dafba99460472f5aebdc3e.tar.gz
gcc-360ca05451bc04b337dafba99460472f5aebdc3e.tar.bz2
re PR middle-end/20263 (Incorrect asm for global register vars)
PR middle-end/20263 * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use the DECL_NAME, not the DECL_ASSEMBLER_NAME. From-SVN: r97157
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index c174eb4..751c8bc 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -897,7 +897,6 @@ make_decl_rtl (tree decl)
name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
-
if (TREE_CODE (decl) != FUNCTION_DECL && DECL_REGISTER (decl))
{
reg_number = decode_reg_name (name);
@@ -940,6 +939,7 @@ make_decl_rtl (tree decl)
/* Make this register global, so not usable for anything
else. */
#ifdef ASM_DECLARE_REGISTER_GLOBAL
+ name = IDENTIFIER_POINTER (DECL_NAME (decl));
ASM_DECLARE_REGISTER_GLOBAL (asm_out_file, decl, reg_number, name);
#endif
nregs = hard_regno_nregs[reg_number][DECL_MODE (decl)];