]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fixup convert-dfp*.c
authorRichard Biener <rguenther@suse.de>
Tue, 7 Jan 2025 14:07:12 +0000 (15:07 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 7 Jan 2025 14:13:14 +0000 (15:13 +0100)
The testcases use -save-temps which doesn't play nice with -flto
and multilib testing resulting in spurious UNRESOLVED like

/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: i386:x86-64 architecture of input file `./convert-dfp-2.ltrans0.ltrans.o' is incompatible with i386 output

The following skips the testcases when using -flto.

* gcc.dg/torture/convert-dfp-2.c: Skip with -flto.
* gcc.dg/torture/convert-dfp.c: Likewise.

gcc/testsuite/gcc.dg/torture/convert-dfp-2.c
gcc/testsuite/gcc.dg/torture/convert-dfp.c

index 3e4ecb57ba647c8408868b369b62d3ce893ed1d3..f62b4715912832d52db83059b782ef9fb8344ff3 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-skip-if "" { *-*-* } { "-flto" } } */
 /* { dg-require-effective-target float16_runtime } */
 /* { dg-require-effective-target dfprt } */
 /* { dg-options "-save-temps" } */
index ec136896ca7bd689931bc76b14b060002ac46f5f..a20253dd75b796b8d8a2a5f3417669504c5618cb 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-skip-if "" { *-*-* } { "-flto" } } */
 /* { dg-require-effective-target float16_runtime } */
 /* { dg-require-effective-target dfprt } */
 /* { dg-options "-save-temps" } */