public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5770] testsuite: Fix up pr103456.c testcase [PR103456]
@ 2021-12-03 11:12 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2021-12-03 11:12 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:97ffef3553267f52ca83dbebdcc8b5e3739febee
commit r12-5770-g97ffef3553267f52ca83dbebdcc8b5e3739febee
Author: Jakub Jelinek <jakub@redhat.com>
Date: Fri Dec 3 12:09:04 2021 +0100
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.
Diff:
---
gcc/testsuite/gcc.dg/ubsan/pr103456.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/ubsan/pr103456.c b/gcc/testsuite/gcc.dg/ubsan/pr103456.c
index 20322fbaab1..7624fa87093 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";
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-03 11:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-03 11:12 [gcc r12-5770] testsuite: Fix up pr103456.c testcase [PR103456] Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).