diff mbox series

[committed] testsuite: Fix up pr103456.c testcase [PR103456]

Message ID 20211203111337.GP2646553@tucnak
State New
Headers show
Series [committed] testsuite: Fix up pr103456.c testcase [PR103456] | expand

Commit Message

Jakub Jelinek Dec. 3, 2021, 11:13 a.m. UTC
On Wed, Dec 01, 2021 at 02:01:59PM +0530, Siddhesh Poyarekar wrote:
> 	PR tree-optimization/103456
> 	* gcc.dg/ubsan/pr103456.c: New test.

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.

Tested on x86_64-linux, committed to trunk as obvious.

2021-12-03  Jakub Jelinek  <jakub@redhat.com>

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



	Jakub
diff mbox series

Patch

--- gcc/testsuite/gcc.dg/ubsan/pr103456.c.jj	2021-12-01 10:03:55.404029919 +0100
+++ gcc/testsuite/gcc.dg/ubsan/pr103456.c	2021-12-03 12:06:57.613750230 +0100
@@ -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";