From b9f9b2101b2c22a613477fcf34afcccb5e5f82dd Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 4 Dec 2007 22:55:32 +0100 Subject: re PR middle-end/34134 (ICE when using __builtin_stack_restore) PR middle-end/34134 * stmt.c (expand_stack_restore): Call expand_normal on var to get rtx for it instead of assuming it will be a VAR_DECL. * gcc.c-torture/compile/20071117-1.c: New test. From-SVN: r130609 --- gcc/stmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/stmt.c') diff --git a/gcc/stmt.c b/gcc/stmt.c index 7d1a266..aacb184 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -1995,7 +1995,7 @@ expand_stack_save (void) void expand_stack_restore (tree var) { - rtx sa = DECL_RTL (var); + rtx sa = expand_normal (var); emit_stack_restore (SAVE_BLOCK, sa, NULL_RTX); } -- cgit v1.1