* function.c (put_var_into_stack): Properly set orig_reg for indirect.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 31 Mar 2004 18:13:50 +0000 (13:13 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 31 Mar 2004 18:13:50 +0000 (13:13 -0500)
From-SVN: r80254

gcc/ChangeLog
gcc/function.c

index cb497e589e203dc9c4673434eb7fbdb16424d172..0e3fad075aab55d0f2455b6d640b78108e9fbe20 100644 (file)
@@ -1,4 +1,8 @@
-2004-03-21  Andrew Pinski  <pinskia@physics.uc.edu>
+2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * function.c (put_var_into_stack): Properly set orig_reg for indirect.
+
+2004-03-31  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
        Add darwin-fpsave.asm, darwin-vecsave.asm,
index 48e2f5d79d9ec95909079004a7dc400645881159..0f4807d28f3a4996ba64d9bb8394ecfb91e3f888 100644 (file)
@@ -1333,7 +1333,7 @@ put_var_into_stack (tree decl, int rescan)
       && GET_CODE (XEXP (reg, 0)) == REG
       && REGNO (XEXP (reg, 0)) > LAST_VIRTUAL_REGISTER)
     {
-      reg = XEXP (reg, 0);
+      orig_reg = reg = XEXP (reg, 0);
       decl_mode = promoted_mode = GET_MODE (reg);
     }