Commit 1d284ec5 by Uros Bizjak

re PR target/48723 (ICE on function returning structure with -fstack-check on corei7-avx)

	PR target/48723
	* config/i386/i386.c (ix86_expand_prologue): Update m->fs.sp_offset
	after the call to ix86_adjust_stack_and_probe.

testsuite/ChangeLog:

	PR target/48723
	* gcc.target/i386/pr48723.c: New test.

From-SVN: r172866
parent aa5b0a0d
2011-04-22 Uros Bizjak <ubizjak@gmail.com>
PR target/48723
* config/i386/i386.c (ix86_expand_prologue): Update m->fs.sp_offset
after the call to ix86_adjust_stack_and_probe.
2011-04-22 Joseph Myers <joseph@codesourcery.com> 2011-04-22 Joseph Myers <joseph@codesourcery.com>
* config/bfin/bfin-protos.h (Mmode): Don't define. Expand * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
...@@ -12,8 +18,7 @@ ...@@ -12,8 +18,7 @@
2011-04-22 Martin Jambor <mjambor@suse.cz> 2011-04-22 Martin Jambor <mjambor@suse.cz>
PR middle-end/48585 PR middle-end/48585
* tree-inline.c (copy_bb): Create new edges only for analyzed * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
nodes.
2011-04-22 Alexander Monakov <amonakov@ispras.ru> 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
...@@ -89,8 +94,7 @@ ...@@ -89,8 +94,7 @@
(expand_stack_vars): ...and here. (expand_stack_vars): ...and here.
(stack_var_cmp): Sort by descending order of size. (stack_var_cmp): Sort by descending order of size.
(partition_stack_vars): Change heuristic. (partition_stack_vars): Change heuristic.
(union_stack_vars): Fix to reflect changes in (union_stack_vars): Fix to reflect changes in partition_stack_vars.
partition_stack_vars.
(dump_stack_var_partition): Add newline after each partition. (dump_stack_var_partition): Add newline after each partition.
2011-04-21 Dimitrios Apostolou <jimis@gmx.net> 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
...@@ -103,8 +107,7 @@ ...@@ -103,8 +107,7 @@
2011-04-21 Richard Guenther <rguenther@suse.de> 2011-04-21 Richard Guenther <rguenther@suse.de>
PR lto/48703 PR lto/48703
* tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
DECL_NAME.
2011-04-21 Eric Botcazou <ebotcazou@adacore.com> 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
......
...@@ -10628,6 +10628,7 @@ ix86_expand_prologue (void) ...@@ -10628,6 +10628,7 @@ ix86_expand_prologue (void)
if (STACK_CHECK_MOVING_SP) if (STACK_CHECK_MOVING_SP)
{ {
ix86_adjust_stack_and_probe (allocate); ix86_adjust_stack_and_probe (allocate);
m->fs.sp_offset += allocate;
allocate = 0; allocate = 0;
} }
else else
2011-04-22 Uros Bizjak <ubizjak@gmail.com>
PR target/48723
* gcc.target/i386/pr48723.c: New test.
2011-04-22 Jakub Jelinek <jakub@redhat.com> 2011-04-22 Jakub Jelinek <jakub@redhat.com>
PR c/48716 PR c/48716
......
/* { dg-do compile } */
/* { dg-options "-fstack-check -mavx" } */
struct S0
{
int f0, f1, f2, f3;
} g_106;
struct S0
func_99 ()
{
return (g_106);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment