diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 2001-11-03 10:50:04 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-11-03 10:50:04 -0500 |
commit | 1285011e67bc94e8ed28b9711ace7445d4588254 (patch) | |
tree | 72debaad8ba738e2cb6c88c8463e497466353307 /gcc/final.c | |
parent | 343fb4120866d610c7e233f19dfcf2b3322774ca (diff) | |
download | gcc-1285011e67bc94e8ed28b9711ace7445d4588254.zip gcc-1285011e67bc94e8ed28b9711ace7445d4588254.tar.gz gcc-1285011e67bc94e8ed28b9711ace7445d4588254.tar.bz2 |
emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a constant expression.
* 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.
From-SVN: r46733
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/final.c b/gcc/final.c index 8ab79ef..6b2ea7e 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; } } |