From: Jakub Jelinek Date: Fri, 3 Dec 2021 11:09:04 +0000 (+0100) Subject: testsuite: Fix up pr103456.c testcase [PR103456] X-Git-Tag: basepoints/gcc-13~2543 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97ffef3553267f52ca83dbebdcc8b5e3739febee;p=thirdparty%2Fgcc.git testsuite: Fix up pr103456.c testcase [PR103456] ubsan.exp cycles through torture options, and that includes -O2 -flto -fno-fat-lto-objects. But with those options tree dump scans don't work for post-IPA passes, for dg-do compile tests nothing after IPA is done. So we get an unresolved testcase: gcc.dg/ubsan/pr103456.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects : dump file does not exist UNRESOLVED: gcc.dg/ubsan/pr103456.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects scan-tree-dump-not objsz1 "maximum object size 0" Fixed by adding -ffat-lto-objects so that we perform the post-IPA passes. 2021-12-03 Jakub Jelinek PR tree-optimization/103456 * gcc.dg/ubsan/pr103456.c: Add -ffat-lto-objects to dg-options. --- diff --git a/gcc/testsuite/gcc.dg/ubsan/pr103456.c b/gcc/testsuite/gcc.dg/ubsan/pr103456.c index 20322fbaab1e..7624fa87093e 100644 --- a/gcc/testsuite/gcc.dg/ubsan/pr103456.c +++ b/gcc/testsuite/gcc.dg/ubsan/pr103456.c @@ -1,6 +1,6 @@ /* PR tree-optimization/103456 */ /* { dg-do compile } */ -/* { dg-options "-fsanitize=undefined -O -fdump-tree-objsz" } */ +/* { dg-options "-fsanitize=undefined -O -fdump-tree-objsz -ffat-lto-objects" } */ static char *multilib_options = "m64/m32";