diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-12-04 21:55:32 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-12-04 21:55:32 +0000 |
commit | 40a8364b10d07a9bd90c027457d1d8957e7e0c40 (patch) | |
tree | 0663723ee3fa06bbc6a609cb2b720faa59068a47 /gcc/testsuite/gcc.c-torture | |
parent | 47111d1eea35fbe60c9f87f2478de0cb5762ca4a (diff) |
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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@130609 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20071117-1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20071117-1.c b/gcc/testsuite/gcc.c-torture/compile/20071117-1.c new file mode 100644 index 00000000000..efcd51269ba --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20071117-1.c @@ -0,0 +1,13 @@ +/* PR middle-end/34134 */ + +extern void bar (void *, int); + +int foo (int i) +{ + char *p = __builtin_stack_save (); + void *q = __builtin_alloca (i); + bar (q, i); + __builtin_stack_restore (p); + bar ("", 0); + return 6; +} |