This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Call delegitimize_mem_from_attrs from s390 delegitimize hook


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]