diff options
author | Peter Bergner <bergner@vnet.ibm.com> | 2006-09-22 08:42:51 -0500 |
---|---|---|
committer | Peter Bergner <bergner@gcc.gnu.org> | 2006-09-22 08:42:51 -0500 |
commit | 2319ffbb7ae57cda5bb19ff0dae37443b71ae3ba (patch) | |
tree | 89fae3801bb369da6e42e4cdadd437d136ff0bbb | |
parent | 2067150ee1180e0114143fe7a110d6dc93a24391 (diff) | |
download | gcc-2319ffbb7ae57cda5bb19ff0dae37443b71ae3ba.tar.gz |
Set REG_POINTER flag according to MEM_POINTER flag.
From-SVN: r117143
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/explow.c | 2 |
2 files changed, 8 insertions, 0 deletions
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 <bergner@vnet.ibm.com> + + PR middle-end/28690 + * explow.c (force_reg): Set REG_POINTER flag according to + MEM_POINTER flag. + 2006-09-22 Zdenek Dvorak <dvorakz@suse.cz> 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); |