re PR c/27898 (Compile failure with --combine and anonymous structures)

PR c/27898
	* gcc.dg/pr27898.c: New test.

	PR tree-optimization/32139
	* gcc.c-torture/compile/pr32139.c: New test.

From-SVN: r145052
This commit is contained in:
Jakub Jelinek 2009-03-25 08:58:55 +01:00 committed by Uros Bizjak
parent 44ab0f0e11
commit 969a543346
4 changed files with 29 additions and 2 deletions

View File

@ -448,8 +448,8 @@
2009-03-07 Jan Hubicka <jh@suse.cz>
PR target/39361
* tree-inline.c (setup_one_parameter): Do replacement of const argument
by constant in SSA form.
* tree-inline.c (setup_one_parameter): Do replacement of const
argument by constant in SSA form.
2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>

View File

@ -1,3 +1,11 @@
2009-03-25 Jakub Jelinek <jakub@redhat.com>
PR c/27898
* gcc.dg/pr27898.c: New test.
PR tree-optimization/32139
* gcc.c-torture/compile/pr32139.c: New test.
2009-03-24 Jason Merrill <jason@redhat.com>
PR c++/28274

View File

@ -0,0 +1,11 @@
/* PR tree-optimization/32139 */
int foo (void);
int bar (void) __attribute__ ((const));
int
test (int x)
{
int a = (x == 10000 ? foo : bar) ();
int b = (x == 10000 ? foo : bar) ();
return a + b;
}

View File

@ -0,0 +1,8 @@
/* PR c/27898 */
/* { dg-do compile } */
/* { dg-options "--combine" } */
/* { dg-additional-sources "pr27898.c" } */
union u { struct { int i; }; };
extern int foo (union u *);