From 2319ffbb7ae57cda5bb19ff0dae37443b71ae3ba Mon Sep 17 00:00:00 2001 From: Peter Bergner Date: Fri, 22 Sep 2006 08:42:51 -0500 Subject: Set REG_POINTER flag according to MEM_POINTER flag. From-SVN: r117143 --- gcc/ChangeLog | 6 ++++++ gcc/explow.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 311f26bd427..190d3873bd7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-09-22 Peter Bergner + + PR middle-end/28690 + * explow.c (force_reg): Set REG_POINTER flag according to + MEM_POINTER flag. + 2006-09-22 Zdenek Dvorak PR tree-optimization/28888 diff --git a/gcc/explow.c b/gcc/explow.c index 2cc34899197..e21e9c112ec 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -710,6 +710,8 @@ force_reg (enum machine_mode mode, rtx x) align = MIN (sa, ca); } + else if (MEM_P (x) && MEM_POINTER (x)) + align = MEM_ALIGN (x); if (align) mark_reg_pointer (temp, align); -- cgit v1.2.1