https://gcc.gnu.org/g:269820543974c6de9e8c0e250bf8a3bbab7dc7af
commit r17-1248-g269820543974c6de9e8c0e250bf8a3bbab7dc7af Author: Rainer Orth <[email protected]> Date: Wed Jun 3 10:05:10 2026 +0200 testsuite: Skip g++.dg/modules/pr120458-1 etc. on non-UCN targets 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. 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: --- gcc/testsuite/g++.dg/modules/pr120458-1_a.C | 1 + gcc/testsuite/g++.dg/modules/pr120458-2_a.C | 1 + 2 files changed, 2 insertions(+) diff --git a/gcc/testsuite/g++.dg/modules/pr120458-1_a.C b/gcc/testsuite/g++.dg/modules/pr120458-1_a.C index 89d0bb5d2937..2d051befe555 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 940f6e771a05..d799d349a65a 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 灵魂;
