summaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-03 15:50:04 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-03 15:50:04 +0000
commit278fe152d9ce422bd94882c2368c79261a49d7e7 (patch)
tree72debaad8ba738e2cb6c88c8463e497466353307 /gcc/final.c
parenteec8e9410d5deceb80ce46b3b08d60801679122a (diff)
downloadgcc-278fe152d9ce422bd94882c2368c79261a49d7e7.tar.gz
* emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
constant expression. (set_mem_decl): New function. * expr.h (set_mem_decl): New declaration. * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo. (output_asm_operand_names): Add tab. * reload1.c (alter_reg): Set decl of MEM from REG_DECL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 8ab79eff46f..6b2ea7eda60 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -3304,7 +3304,7 @@ get_decl_from_op (op, paddressp)
*paddressp = 0;
- if (GET_CODE (op) == REG)
+ if (GET_CODE (op) == REG && ORIGINAL_REGNO (op) >= FIRST_PSEUDO_REGISTER)
return REGNO_DECL (ORIGINAL_REGNO (op));
else if (GET_CODE (op) != MEM)
return 0;
@@ -3353,9 +3353,9 @@ output_asm_operand_names (operands, oporder, nops)
if (decl && DECL_NAME (decl))
{
- fprintf (asm_out_file, "%s %s%s",
- wrote ? "," : ASM_COMMENT_START, addressp ? "*" : "",
- IDENTIFIER_POINTER (DECL_NAME (decl)));
+ fprintf (asm_out_file, "%c%s %s%s",
+ wrote ? ',' : '\t', wrote ? "" : ASM_COMMENT_START,
+ addressp ? "*" : "", IDENTIFIER_POINTER (DECL_NAME (decl)));
wrote = 1;
}
}