aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2025-02-07 11:36:33 -0300
committerAlexandre Oliva <oliva@gnu.org>2025-02-07 11:36:33 -0300
commitd790f0137c6f12950f1d93a66cf9bdb78757c28b (patch)
tree583423eca2aeb3a099b217c09581ef07f475226b /gcc
parentea4278b1ced4a4c982678094e98ef3efd844917a (diff)
downloadgcc-d790f0137c6f12950f1d93a66cf9bdb78757c28b.zip
gcc-d790f0137c6f12950f1d93a66cf9bdb78757c28b.tar.gz
gcc-d790f0137c6f12950f1d93a66cf9bdb78757c28b.tar.bz2
[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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/pr108357.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr108357.c b/gcc/testsuite/gcc.dg/tree-ssa/pr108357.c
index 44c457b..7dff235 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr108357.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr108357.c
@@ -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" } } */