aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2009-04-16 16:08:04 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2009-04-16 16:08:04 +0000
commitefc0b2bd809d65e812b3022623b5e5adbc681ba2 (patch)
tree3ebbcbf49394dbd129b5e797695277272a56d921 /gcc/reload1.c
parent6080348f0a75caa10df4208617d9247d56e85329 (diff)
downloadgcc-efc0b2bd809d65e812b3022623b5e5adbc681ba2.zip
gcc-efc0b2bd809d65e812b3022623b5e5adbc681ba2.tar.gz
gcc-efc0b2bd809d65e812b3022623b5e5adbc681ba2.tar.bz2
rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
* rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note. (add_reg_note): Call alloc_reg_note. * rtl.h (alloc_reg_note): Declare. * combine.c (try_combine): Use alloc_reg_note. (recog_for_combine, move_deaths): Likewise. (distribute_notes): Use alloc_reg_note and add_reg_note. * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note. * combine-stack-adj.c (adjust_frame_related_expr): Likewise. * reload1.c (eliminate_regs_1): Use alloc_reg_note. From-SVN: r146201
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 180c394..bb5a3a2 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -2686,7 +2686,7 @@ eliminate_regs_1 (rtx x, enum machine_mode mem_mode, rtx insn,
? eliminate_regs_1 (XEXP (x, 1), mem_mode, insn, true)
: NULL_RTX);
- x = gen_rtx_EXPR_LIST (REG_NOTE_KIND (x), new_rtx, XEXP (x, 1));
+ x = alloc_reg_note (REG_NOTE_KIND (x), new_rtx, XEXP (x, 1));
}
}