aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@mvista.com>2003-03-12 16:45:25 +0000
committerDaniel Jacobowitz <drow@gcc.gnu.org>2003-03-12 16:45:25 +0000
commit59a7f9bf40ec26a39e3ec2bcef5f4506b2e684e3 (patch)
treea37be3e05ef1d202f039242fe934d4567d04ab0d /gcc
parentcd22e4af595f1ac0399cff1bd048750bc8ce1d68 (diff)
downloadgcc-59a7f9bf40ec26a39e3ec2bcef5f4506b2e684e3.zip
gcc-59a7f9bf40ec26a39e3ec2bcef5f4506b2e684e3.tar.gz
gcc-59a7f9bf40ec26a39e3ec2bcef5f4506b2e684e3.tar.bz2
Fix PR target/9797 and PR c/9853.
* stmt.c (expand_decl_init): Call push_temp_slots () and pop_temp_slots (). From-SVN: r64250
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/stmt.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0e3c4a7..5cd1945 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-02-24 Daniel Jacobowitz <drow@mvista.com>
+
+ Fix PR target/9797 and PR c/9853.
+ * stmt.c (expand_decl_init): Call push_temp_slots () and
+ pop_temp_slots ().
+
Wed Mar 12 16:30:25 2003 J"orn Rennecke <joern.rennecke@superh.com>
* sh.c: Include basic-block.h.
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 74d5f3d..ea21a6d 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -4043,6 +4043,8 @@ expand_decl_init (decl)
/* Compute and store the initial value now. */
+ push_temp_slots ();
+
if (DECL_INITIAL (decl) == error_mark_node)
{
enum tree_code code = TREE_CODE (TREE_TYPE (decl));
@@ -4066,6 +4068,7 @@ expand_decl_init (decl)
/* Free any temporaries we made while initializing the decl. */
preserve_temp_slots (NULL_RTX);
free_temp_slots ();
+ pop_temp_slots ();
}
/* CLEANUP is an expression to be executed at exit from this binding contour;