re PR target/9797 ([ARM] miscompiles C99-style struct initializers)
Fix PR target/9797. * stmt.c (expand_decl_init): Call push_temp_slots () and pop_temp_slots (). From-SVN: r64776
This commit is contained in:
parent
915c2e909e
commit
4c3f0abeb6
|
@ -1,3 +1,9 @@
|
|||
2003-03-23 Daniel Jacobowitz <drow@mvista.com>
|
||||
|
||||
Fix PR target/9797.
|
||||
* stmt.c (expand_decl_init): Call push_temp_slots () and
|
||||
pop_temp_slots ().
|
||||
|
||||
2003-03-23 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
|
||||
|
|
|
@ -4062,6 +4062,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));
|
||||
|
@ -4085,6 +4087,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;
|
||||
|
|
Loading…
Reference in New Issue