20030814-6.c: Fix testcase, disable FRE, remove XFAIL.

2016-04-05  Richard Biener  <rguenther@suse.de>

	* gcc.dg/tree-ssa/20030814-6.c: Fix testcase, disable FRE,
	remove XFAIL.

From-SVN: r234737
This commit is contained in:
Richard Biener 2016-04-05 07:23:49 +00:00 committed by Richard Biener
parent 7a7ac32ac6
commit cc05759d4c
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2016-04-05 Richard Biener <rguenther@suse.de>
* gcc.dg/tree-ssa/20030814-6.c: Fix testcase, disable FRE,
remove XFAIL.
2016-04-04 Jakub Jelinek <jakub@redhat.com> 2016-04-04 Jakub Jelinek <jakub@redhat.com>
PR middle-end/70307 PR middle-end/70307

View File

@ -1,5 +1,5 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fno-tree-fre -fdump-tree-dom2" } */
extern void abort (void); extern void abort (void);
union tree_node; union tree_node;
@ -15,6 +15,7 @@ struct tree_common
}; };
struct tree_type struct tree_type
{ {
struct tree_common common;
double alias_set; double alias_set;
}; };
union tree_node union tree_node
@ -39,6 +40,4 @@ foo (t, set)
} }
/* There should be precisely one load of common.code. If there is /* There should be precisely one load of common.code. If there is
more than one, then the dominator optimizations failed. */ more than one, then the dominator optimizations failed. */
/* ??? Will fail until we properly distinguish member stores. At /* { dg-final { scan-tree-dump-times "common.code" 1 "dom2" } } */
present the write to type.alias_set kills the previous load. */
/* { dg-final { scan-tree-dump-times "common.code" 1 "dom2" { xfail *-*-* } } } */