From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98532 invoked by alias); 16 Apr 2019 12:51:18 -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 98522 invoked by uid 89); 16 Apr 2019 12:51:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Apr 2019 12:51:16 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 6E7F22805E6; Tue, 16 Apr 2019 14:51:14 +0200 (CEST) Date: Tue, 16 Apr 2019 12:55:00 -0000 From: Jan Hubicka To: Dominique =?utf-8?Q?d'Humi=C3=A8res?= Cc: gcc-patches Subject: Re: Fix false -Wodr warnings Message-ID: <20190416125114.uofbvksbpxbzo5au@kam.mff.cuni.cz> References: <553C9698-9DAE-4C8F-A7EE-2402EBA68934@lps.ens.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <553C9698-9DAE-4C8F-A7EE-2402EBA68934@lps.ens.fr> User-Agent: NeoMutt/20170113 (1.7.2) X-SW-Source: 2019-04/txt/msg00637.txt.bz2 > Hi Jan, > > The test causes > > WARNING: lto.exp does not support dg-do > WARNING: lto.exp does not support dg-options in primary source file > > This is fixed by the following patch > > --- ../_clean/gcc/testsuite/g++.dg/lto/pr89358_0.C 2019-04-15 00:04:48.000000000 +0200 > +++ gcc/testsuite/g++.dg/lto/pr89358_0.C 2019-04-16 13:13:14.000000000 +0200 > @@ -1,5 +1,5 @@ > -/* { dg-do link } */ > -/* { dg-options "-std=c++17" } */ > +/* { dg-lto-do link } */ > +/* { dg-lto-options "-std=c++17" } */ Thanks, this changle is OK. Honza > #include > > extern void test(); > --- ../_clean/gcc/testsuite/g++.dg/lto/pr89358_1.C 2019-04-15 00:04:48.000000000 +0200 > +++ gcc/testsuite/g++.dg/lto/pr89358_1.C 2019-04-16 13:14:44.000000000 +0200 > @@ -1,4 +1,3 @@ > -/* { dg-options "-std=c++14" } */ > #include > > void test() > > TIA > > Dominique