diff options
| author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-29 12:08:54 +0000 |
|---|---|---|
| committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-29 12:08:54 +0000 |
| commit | 91bf0af7c92ade821ac693591f2ff18a9daaa965 (patch) | |
| tree | 514cd477a850012502ca1974a42b47cb3cb03d19 /gcc/varasm.c | |
| parent | d297148788686526bc4f9a4b8b1bbaf0c8c96dc9 (diff) | |
| download | ppe42-gcc-91bf0af7c92ade821ac693591f2ff18a9daaa965.tar.gz ppe42-gcc-91bf0af7c92ade821ac693591f2ff18a9daaa965.zip | |
PR middle-end/20263
* varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
the DECL_NAME, not the DECL_ASSEMBLER_NAME.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97157 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
| -rw-r--r-- | gcc/varasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index c174eb41414..751c8bce959 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)]; |

