From patchwork Sun Sep 16 17:20:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Edlinger X-Patchwork-Id: 970328 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-485723-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=hotmail.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="k/UW6o5B"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42Cwxc1Byjz9sB5 for ; Mon, 17 Sep 2018 03:20:18 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:content-type:mime-version; q=dns; s= default; b=AuzZrl4Xu4UlZpUkFf7BUUAE7KoHqd5JH5jaeYJJqIU4oQwIudUo/ wxDQCPyqddzVvVIt+9wRarCx3Q7BRdt3ej+Zs+Gt3zi69QvIIil+GniDaGIcVq6H hf/VOl7YOkG+UyZk5WFCB+KRM2cAaMichbT+pJDke/X49kQqfPVG6Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:content-type:mime-version; s= default; bh=t84w/abMpYxm6B+s+lJIgZW5ayE=; b=k/UW6o5BnhWNhRh2z+dv mF3OqpqYWfTcrrvaj927ofB5Q801Ht0k6yt/3nXA7v12USFR5QZ4lWy6xlOoVBKg CVOI9AK4x6nvJAU/VvAxSJ88BZlzX/aJjDZXbPzEYZOlKey9kJ2u8kSSERi2XBcK ocbREUMmVbE3OVww7kDnD54= Received: (qmail 93829 invoked by alias); 16 Sep 2018 17:20:11 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 93820 invoked by uid 89); 16 Sep 2018 17:20:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=malcolm, Malcolm, H*Ad:U*law, sk:fnodia X-HELO: EUR02-VE1-obe.outbound.protection.outlook.com Received: from mail-oln040092069020.outbound.protection.outlook.com (HELO EUR02-VE1-obe.outbound.protection.outlook.com) (40.92.69.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Sep 2018 17:20:08 +0000 Received: from VE1EUR02FT010.eop-EUR02.prod.protection.outlook.com (10.152.12.55) by VE1EUR02HT228.eop-EUR02.prod.protection.outlook.com (10.152.13.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.1164.13; Sun, 16 Sep 2018 17:20:05 +0000 Received: from VI1PR0701MB2862.eurprd07.prod.outlook.com (10.152.12.57) by VE1EUR02FT010.mail.protection.outlook.com (10.152.12.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.1164.13 via Frontend Transport; Sun, 16 Sep 2018 17:20:05 +0000 Received: from VI1PR0701MB2862.eurprd07.prod.outlook.com ([fe80::854a:328:c580:5fb9]) by VI1PR0701MB2862.eurprd07.prod.outlook.com ([fe80::854a:328:c580:5fb9%3]) with mapi id 15.20.1143.017; Sun, 16 Sep 2018 17:20:05 +0000 From: Bernd Edlinger To: "gcc-patches@gcc.gnu.org" , Jeff Law , Richard Biener Subject: [PATCH] Fix ms-sysv generator with gcc-4.8 host-g++ Date: Sun, 16 Sep 2018 17:20:05 +0000 Message-ID: received-spf: None (protection.outlook.com: hotmail.de does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=bernd.edlinger@hotmail.de; MIME-Version: 1.0 Hi, this prevents test failures when gcc-4.8 is used as host-g++ tool, since this version does understand -std=c++11 but not -fno-diagnostics-show-line-numbers and -fdiagnostics-color=never. With slightly newer gcc tools like gcc-5 everything works fine. Apparently the following commit added those options to TEST_ALWAYS_FLAGS. 2018-08-09 David Malcolm PR other/84889 * gcc.dg/plugin/diagnostic-test-show-locus-bw-line-numbers.c: New test. * gcc.dg/plugin/diagnostic-test-show-locus-color-line-numbers.c: New test. * gcc.dg/plugin/plugin.exp (plugin_test_list): Add the new tests. * lib/prune.exp: Add -fno-diagnostics-show-line-numbers to TEST_ALWAYS_FLAGS. Work around is not using TEST_ALWAYS_FLAGS in the host tool invocation. Bootstrapped and reg-tested with gcc-4.8 and gcc-5 host tools. Is it OK for trunk? Thanks Bernd. 2018-09-16 Bernd Edlinger * gcc.target/x86_64/abi/ms-sysv/ms-sysv.exp: Don't pass TEST_ALWAYS_FLAGS to HOSTCXX. Index: gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.exp =================================================================== --- gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.exp (revision 264342) +++ gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.exp (working copy) @@ -109,7 +109,7 @@ < [file mtime "$src"]) } { # Temporarily switch to the environment for the host compiler. restore_ld_library_path_env_vars - set cxx "$HOSTCXX $HOSTCXXFLAGS $TEST_ALWAYS_FLAGS $warn_flags -std=c++11" + set cxx "$HOSTCXX $HOSTCXXFLAGS $warn_flags -std=c++11" set status [remote_exec host "$cxx -o $generator $src"] set status [lindex $status 0] set_ld_library_path_env_vars