[testsuite] tolerate later success [PR108357]
On leon3-elf and presumably on other targets, the test fails due to differences in calling conventions and other reasons, that add extra gimple stmts that prevent the expected optimization at the expected point. The optimization takes place anyway, just a little later, so tolerate that. for gcc/testsuite/ChangeLog PR tree-optimization/108357 * gcc.dg/tree-ssa/pr108357.c: Tolerate later optimization.
This commit is contained in:
parent
ea4278b1ce
commit
d790f0137c
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -fdump-tree-threadfull1" } */
|
||||
/* { dg-options "-O2 -fdump-tree-optimized" } */
|
||||
|
||||
static char b;
|
||||
static unsigned c;
|
||||
|
@ -19,4 +19,7 @@ int main()
|
|||
f(g);
|
||||
}
|
||||
|
||||
/* { dg-final { scan-tree-dump-not "foo" "threadfull1" } } */
|
||||
/* We expect threadfull1 to eliminate the call to foo(), but not all targets
|
||||
manage that at that point. Calling conventions (mandatory promotion) play a
|
||||
role, but there's more than that. */
|
||||
/* { dg-final { scan-tree-dump-not "foo" "optimized" } } */
|
||||
|
|
Loading…
Add table
Reference in a new issue