Commit 0a317111 by Ulrich Weigand Committed by Ulrich Weigand

emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment information passed…

emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment information passed to mark_reg_pointer.

	* emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
	information passed to mark_reg_pointer.
	* explow.c (force_reg): Likewise.

From-SVN: r140318
parent 59dbe4fe
2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
information passed to mark_reg_pointer.
* explow.c (force_reg): Likewise.
2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.c (spu_override_options): Default to -mno-safe-hints * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
when building for the celledp architecture. when building for the celledp architecture.
......
...@@ -979,7 +979,7 @@ set_reg_attrs_from_value (rtx reg, rtx x) ...@@ -979,7 +979,7 @@ set_reg_attrs_from_value (rtx reg, rtx x)
REG_ATTRS (reg) REG_ATTRS (reg)
= get_reg_attrs (MEM_EXPR (x), INTVAL (MEM_OFFSET (x)) + offset); = get_reg_attrs (MEM_EXPR (x), INTVAL (MEM_OFFSET (x)) + offset);
if (MEM_POINTER (x)) if (MEM_POINTER (x))
mark_reg_pointer (reg, MEM_ALIGN (x)); mark_reg_pointer (reg, 0);
} }
else if (REG_P (x)) else if (REG_P (x))
{ {
......
...@@ -698,10 +698,8 @@ force_reg (enum machine_mode mode, rtx x) ...@@ -698,10 +698,8 @@ force_reg (enum machine_mode mode, rtx x)
align = MIN (sa, ca); align = MIN (sa, ca);
} }
else if (MEM_P (x) && MEM_POINTER (x))
align = MEM_ALIGN (x);
if (align) if (align || (MEM_P (x) && MEM_POINTER (x)))
mark_reg_pointer (temp, align); mark_reg_pointer (temp, align);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment