aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-invariant.c
diff options
context:
space:
mode:
authorPeter Bergner <bergner@vnet.ibm.com>2008-04-07 12:36:59 -0500
committerPeter Bergner <bergner@gcc.gnu.org>2008-04-07 12:36:59 -0500
commit46b71b0354e0eba0e0b176a80434bb3a953aadb6 (patch)
tree1d70b0b5be2385ffac16616696a1ca2968a86039 /gcc/loop-invariant.c
parent64ef8953e3507ad5e3f356e4d65a0d7fd9d10355 (diff)
downloadgcc-46b71b0354e0eba0e0b176a80434bb3a953aadb6.zip
gcc-46b71b0354e0eba0e0b176a80434bb3a953aadb6.tar.gz
gcc-46b71b0354e0eba0e0b176a80434bb3a953aadb6.tar.bz2
PR middle-end/PR28690
PR middle-end/PR28690 * rtlanal.c: Update copyright years. (commutative_operand_precedence): Give SYMBOL_REF's the same precedence as REG_POINTER and MEM_POINTER operands. * emit-rtl.c (gen_reg_rtx_and_attrs): New function. (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate. * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function. * gcse.c: Update copyright years. (pre_delete): Call gen_reg_rtx_and_attrs. (hoist_code): Likewise. (build_store_vectors): Likewise. (delete_store): Likewise. * loop-invariant.c (move_invariant_reg): Likewise. Update copyright years. From-SVN: r133985
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r--gcc/loop-invariant.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c
index 64c16a9..f043884 100644
--- a/gcc/loop-invariant.c
+++ b/gcc/loop-invariant.c
@@ -1,5 +1,5 @@
/* RTL-level loop invariant motion.
- Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
This file is part of GCC.
@@ -1193,7 +1193,7 @@ move_invariant_reg (struct loop *loop, unsigned invno)
need to create a temporary register. */
set = single_set (inv->insn);
dest = SET_DEST (set);
- reg = gen_reg_rtx (GET_MODE (dest));
+ reg = gen_reg_rtx_and_attrs (dest);
/* Try replacing the destination by a new pseudoregister. */
if (!validate_change (inv->insn, &SET_DEST (set), reg, false))