The gcc.dg/ipa/pr122458.c test FAILs on Solaris with the native assembler:
FAIL: gcc.dg/ipa/pr122458.c (test for excess errors)
Excess errors:
Assembler: pr122458.c
"/var/tmp//cctINwTd.s", line 4 : Illegal mnemonic
Near line: " .dc.a foo"
"/var/tmp//cctINwTd.s", line 4 : Syntax error
Near line: " .dc.a foo"
Given that .dc.a is a gas extension, this patch xfail's the patch
without gas.
Tested on i386-pc-solaris2.11 and sparc-sun-solaris2.11 (as and gas),
and x86_64-pc-linux-gnu.
Committed to trunk.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
2026-02-16 Rainer Orth <[email protected]>
gcc/testsuite:
* gcc.dg/ipa/pr122458.c: xfail without gas.
# HG changeset patch
# Parent ec9c618a208b14464891bc2c478a4235901d0b6b
testsuite: i386: xfail gcc.dg/ipa/pr122458.c without gas
diff --git a/gcc/testsuite/gcc.dg/ipa/pr122458.c b/gcc/testsuite/gcc.dg/ipa/pr122458.c
--- a/gcc/testsuite/gcc.dg/ipa/pr122458.c
+++ b/gcc/testsuite/gcc.dg/ipa/pr122458.c
@@ -1,6 +1,7 @@
/* PR ipa/122458 */
/* { dg-do link } */
/* { dg-options "-O2" } */
+/* { dg-xfail-if ".dc.a is a gas extension" { ! gas } } */
static int foo (void) { return 0; };