From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66671 invoked by alias); 13 Oct 2015 09:12:24 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 66650 invoked by uid 89); 13 Oct 2015 09:12:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Oct 2015 09:12:22 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-22-cgZGOnrpSHC-ARWSwjDuuw-1; Tue, 13 Oct 2015 10:12:17 +0100 Received: from [10.2.206.40] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 13 Oct 2015 10:12:16 +0100 Message-ID: <561CCAF0.8010200@arm.com> Date: Tue, 13 Oct 2015 09:12:00 -0000 From: Szabolcs Nagy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: "libstdc++@gcc.gnu.org" , "gcc-patches@gcc.gnu.org" Subject: [PATCH] mark libstdc++ tests unsupported if they fail with "relocation truncated" X-MC-Unique: cgZGOnrpSHC-ARWSwjDuuw-1 Content-Type: multipart/mixed; boundary="------------040703020204000008080807" X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg01199.txt.bz2 This is a multi-part message in MIME format. --------------040703020204000008080807 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-length: 695 Dejagnu tweak: Check the compiler output in libstdc++-dg-test using ${tool}_check_unsupported_p and mark the output unsupported accordingly to avoid "relocation truncated" failures cluttering the test results on aarch64-none-elf with -mcmodel=3Dtiny. (gcc torture tests already use this predicate for this reason.) This is a revision of https://gcc.gnu.org/ml/libstdc++/2015-01/msg00198.html which had problems because the unsupported result was propagated to and handled by dg-runtest differently than expected. Is it OK? libstdc++-v3/Changelog: 2015-10-13 Szabolcs Nagy * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for unsupported compiler output. --------------040703020204000008080807 Content-Type: text/x-patch; name=reloc_trunc_dg.diff Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="reloc_trunc_dg.diff" Content-length: 700 diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsu= ite/lib/libstdc++.exp index 88738b7..769ac94 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -409,6 +409,11 @@ proc libstdc++-dg-test { prog do_what extra_tool_flags= } { # and-target file), but the defaults are lacking in goodness. set comp_output [$select_compile "$prog" "$output_file" "$compile_type= " $options]; =20 + set unsupported_message [libstdc++_check_unsupported_p $comp_output] + if { $unsupported_message !=3D "" } { + set comp_output "::unsupported::$unsupported_message" + } + return [list $comp_output $output_file] } =20 --------------040703020204000008080807--