From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1147) id EFFD5385E006; Wed, 14 Feb 2024 13:53:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EFFD5385E006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707918812; bh=RBFj6X8h4GjbvzH81056XGeqbTyzq46i/LIuzzV21O4=; h=From:To:Subject:Date:From; b=eiOsQSyfssThah+ffIN0wVBlLh63AUxX+aTfseVthnklwi8yLb0ASXtRjJBXby6mc ZkxVkvcvlDkxRAEQ9BlrFOC0ZS5RMS+gD8/bbbflA1wNrgMoGU7PiQN2C3BwHlFpJY EZqI6iE/kX+lJi0A7vHEdY5huRCh2akHktWRJexM= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Rainer Orth To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-8979] testsuite: gdc: Require ucn in gdc.test/runnable/mangle.d etc. [PR104739] X-Act-Checkin: gcc X-Git-Author: Rainer Orth X-Git-Refname: refs/heads/master X-Git-Oldrev: 948dbc5ee45f9ffd5f41fd6782704081cc7c8c27 X-Git-Newrev: a032c319cb9cf5348d71f008f311bcf95f3dac40 Message-Id: <20240214135332.EFFD5385E006@sourceware.org> Date: Wed, 14 Feb 2024 13:53:31 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a032c319cb9cf5348d71f008f311bcf95f3dac40 commit r14-8979-ga032c319cb9cf5348d71f008f311bcf95f3dac40 Author: Rainer Orth Date: Wed Feb 14 14:52:54 2024 +0100 testsuite: gdc: Require ucn in gdc.test/runnable/mangle.d etc. [PR104739] gdc.test/runnable/mangle.d and two other tests come out UNRESOLVED on Solaris with the native assembler: UNRESOLVED: gdc.test/runnable/mangle.d compilation failed to produce executable UNRESOLVED: gdc.test/runnable/mangle.d -shared-libphobos compilation failed to produce executable UNRESOLVED: gdc.test/runnable/testmodule.d compilation failed to produce executable UNRESOLVED: gdc.test/runnable/testmodule.d -shared-libphobos compilation failed to produce executable UNRESOLVED: gdc.test/runnable/ufcs.d compilation failed to produce executable UNRESOLVED: gdc.test/runnable/ufcs.d -shared-libphobos compilation failed to produce executable Assembler: mangle.d "/var/tmp//cci9q2Sc.s", line 115 : Syntax error Near line: " movzbl test_эльфийские_письмена_9, %eax" "/var/tmp//cci9q2Sc.s", line 115 : Syntax error Near line: " movzbl test_эльфийские_письмена_9, %eax" "/var/tmp//cci9q2Sc.s", line 115 : Syntax error Near line: " movzbl test_эльфийские_письмена_9, %eax" "/var/tmp//cci9q2Sc.s", line 115 : Syntax error Near line: " movzbl test_эльфийские_письмена_9, %eax" "/var/tmp//cci9q2Sc.s", line 115 : Syntax error [...] since /bin/as lacks UCN support. Iain recently added UNICODE_NAMES: annotations to the affected tests and those recently were imported into trunk. This patch handles the DejaGnu side of things, adding { dg-require-effective-target ucn } to those tests on the fly. Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11 (as and gas each), and x86_64-pc-linux-gnu. 2024-02-03 Rainer Orth gcc/testsuite: PR d/104739 * lib/gdc-utils.exp (gdc-convert-test) : Require ucn support. Diff: --- gcc/testsuite/lib/gdc-utils.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/testsuite/lib/gdc-utils.exp b/gcc/testsuite/lib/gdc-utils.exp index 8c7efff74083..6600ef866d0a 100644 --- a/gcc/testsuite/lib/gdc-utils.exp +++ b/gcc/testsuite/lib/gdc-utils.exp @@ -244,6 +244,7 @@ proc gdc-copy-file { srcdir filename } { # POST_SCRIPT: Not handled. # REQUIRED_ARGS: Arguments to add to the compiler command line. # DISABLED: Not handled. +# UNICODE_NAMES: Requires ucn support. # proc gdc-convert-test { base test } { @@ -365,6 +366,10 @@ proc gdc-convert-test { base test } { # COMPILABLE_MATH_TEST annotates tests that import the std.math # module. Which will need skipping if not available on the target. set needs_phobos 1 + } elseif [regexp -- {UNICODE_NAMES} $copy_line] { + # Require ucn support. + puts $fdout "// { dg-require-effective-target ucn }" + } }