]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commit97ffef3553267f52ca83dbebdcc8b5e3739febee
treeb40ffd716b71291f923416a4fa3793618933b8c6
parent7e71909af2cf3aeec9bed4f6a3cc42c1d17cd661
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  <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