Two new tests FAIL on Solaris with the native assembler:

FAIL: g++.dg/modules/pr120458-1 -std=c++17 link
FAIL: g++.dg/modules/pr120458-1 -std=c++20 link
FAIL: g++.dg/modules/pr120458-1 -std=c++26 link
FAIL: g++.dg/modules/pr120458-2 -std=c++17 link
FAIL: g++.dg/modules/pr120458-2 -std=c++20 link
FAIL: g++.dg/modules/pr120458-2 -std=c++26 link

They don't assemble because as lacks UCN support:

Assembler: pr120458-1_a.C
        "pr120458-1_a.s", line 3 : Syntax error
        Near line: "    .globl  _ZW6영혼1fj" 
[...]
Too many errors - Goodbye

Fixed by skipping the tests on non-UCN targets.

Tested on i386-pc-solaris2.11, 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-06-02  Rainer Orth  <[email protected]>

        gcc/testsuite:
        * g++.dg/modules/pr120458-1_a.C: Skip on non-UCN targets.
        * g++.dg/modules/pr120458-2_a.C: Likewise.

diff --git a/gcc/testsuite/g++.dg/modules/pr120458-1_a.C b/gcc/testsuite/g++.dg/modules/pr120458-1_a.C
index 89d0bb5d293..2d051befe55 100644
--- a/gcc/testsuite/g++.dg/modules/pr120458-1_a.C
+++ b/gcc/testsuite/g++.dg/modules/pr120458-1_a.C
@@ -1,5 +1,6 @@
 // { dg-module-do link }
 // { dg-additional-options "-fmodules -finput-charset=UTF-8" }
+// { dg-skip-if "" { ! ucn } }
 
 export module 영혼;
 // { dg-module-cmi }
diff --git a/gcc/testsuite/g++.dg/modules/pr120458-2_a.C b/gcc/testsuite/g++.dg/modules/pr120458-2_a.C
index 940f6e771a0..d799d349a65 100644
--- a/gcc/testsuite/g++.dg/modules/pr120458-2_a.C
+++ b/gcc/testsuite/g++.dg/modules/pr120458-2_a.C
@@ -1,6 +1,7 @@
 // { dg-module-do link }
 // { dg-additional-options "-fmodules -fmodule-mapper=[srcdir]/pr120458-2.map " }
 // { dg-additional-options "-finput-charset=UTF-8 " }
+// { dg-skip-if "" { ! ucn } }
 // { dg-additional-files "pr120458-2.map" }
 
 export module 灵魂;

Reply via email to