[COMMITTED] testsuite: Skip g++.dg/modules/pr120458-1 etc. on non-UCN targets

Message ID ydd8q8wt5en.fsf@CeBiTec.Uni-Bielefeld.DE
State Committed
Headers
Series [COMMITTED] testsuite: Skip g++.dg/modules/pr120458-1 etc. on non-UCN targets |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-aarch64-bootstrap fail Patch failed to apply

Commit Message

Rainer Orth June 3, 2026, 8:05 a.m. UTC
  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
  

Patch

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 灵魂;