This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Call delegitimize_mem_from_attrs from s390 delegitimize hook
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andreas dot Krebbel at de dot ibm dot com, Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Alexandre Oliva <aoliva at redhat dot com>
- Date: Wed, 27 Jan 2010 15:22:04 +0100
- Subject: [PATCH] Call delegitimize_mem_from_attrs from s390 delegitimize hook
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
I've noticed that when Alex added delegitimize_mem_from_attrs function
and made it the default delegitimization hook for targets that don't have
any (this was during the VTA merge), he made the i?86 delegitimize hook
use it, but not s390 one.
Fixed thusly, bootstrapped/regtested on s390-linux and s390x-linux.
Ok for trunk?
2010-01-27 Jakub Jelinek <jakub@redhat.com>
* config/s390/s390.c (s390_delegitimize_address): Call
delegitimize_mem_from_attrs.
--- gcc/config/s390/s390.c.jj 2009-12-02 10:48:43.000000000 +0100
+++ gcc/config/s390/s390.c 2010-01-26 15:40:42.000000000 +0100
@@ -4763,8 +4763,10 @@ s390_mangle_type (const_tree type)
static rtx
s390_delegitimize_address (rtx orig_x)
{
- rtx x = orig_x, y;
+ rtx x, y;
+ orig_x = delegitimize_mem_from_attrs (orig_x);
+ x = orig_x;
if (GET_CODE (x) != MEM)
return orig_x;
Jakub