]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up pr103456.c testcase [PR103456]
authorJakub Jelinek <jakub@redhat.com>
Fri, 3 Dec 2021 11:09:04 +0000 (12:09 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 3 Dec 2021 11:09:04 +0000 (12:09 +0100)
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  <jakub@redhat.com>

PR tree-optimization/103456
* gcc.dg/ubsan/pr103456.c: Add -ffat-lto-objects to dg-options.

gcc/testsuite/gcc.dg/ubsan/pr103456.c

index 20322fbaab1e483c98f90e9e4b60c9d39f7adb93..7624fa87093ee765d29ccf0125aabca0d4fb5b74 100644 (file)
@@ -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";