* stmt.c (expand_stack_restore): Change sa mode if needed.
authorSteve Ellcey <sje@cup.hp.com>
Thu, 8 May 2008 16:22:27 +0000 (16:22 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Thu, 8 May 2008 16:22:27 +0000 (16:22 +0000)
From-SVN: r135085

gcc/ChangeLog
gcc/stmt.c

index fcf9e3d074e351cdf992b5c2053f454f95fb068f..f87e063d216b57ce9a79d3cae5e79139db9c4889 100644 (file)
@@ -1,3 +1,7 @@
+2008-05-08  Steve Ellcey  <sje@cup.hp.com>
+
+       * stmt.c (expand_stack_restore): Change sa mode if needed.
+
 2008-05-08  Richard Guenther  <rguenther@suse.de>
 
        * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
index ba4c49d4d8795251da36724446d3ebb9a54904e0..4dba88196cfaa2df243456e373b75dc065cca60a 100644 (file)
@@ -1996,6 +1996,7 @@ expand_stack_restore (tree var)
 {
   rtx sa = expand_normal (var);
 
+  sa = convert_memory_address (Pmode, sa);
   emit_stack_restore (SAVE_BLOCK, sa, NULL_RTX);
 }
 \f