From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39825 invoked by alias); 16 Apr 2019 12:41:03 -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 39813 invoked by uid 89); 16 Apr 2019 12:41:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=_clean, tia, TIA, HX-Languages-Length:801 X-HELO: nef.ens.fr Received: from nef2.ens.fr (HELO nef.ens.fr) (129.199.96.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Apr 2019 12:41:01 +0000 X-ENS-nef-client: 129.199.120.1 Received: from mailhost.lps.ens.fr (tournesol.lps.ens.fr [129.199.120.1]) by nef.ens.fr (8.14.4/1.01.28121999) with ESMTP id x3GCewts010952 ; Tue, 16 Apr 2019 14:40:58 +0200 Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id 64E7411B; Tue, 16 Apr 2019 14:40:58 +0200 (CEST) Received: from mailhost.lps.ens.fr ([127.0.0.1]) by localhost (tournesol.lps.ens.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IgFVKlkK6Ffk; Tue, 16 Apr 2019 14:40:58 +0200 (CEST) Received: from [192.168.1.11] (log78-1-82-242-47-10.fbx.proxad.net [82.242.47.10]) by mailhost.lps.ens.fr (Postfix) with ESMTPSA id 37ECAFF; Tue, 16 Apr 2019 14:40:58 +0200 (CEST) From: =?utf-8?Q?Dominique_d=27Humi=C3=A8res?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: Fix false -Wodr warnings Message-Id: <553C9698-9DAE-4C8F-A7EE-2402EBA68934@lps.ens.fr> Date: Tue, 16 Apr 2019 12:51:00 -0000 Cc: gcc-patches To: Jan Hubicka X-SW-Source: 2019-04/txt/msg00636.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.0000= 00000 +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=3Dc++17" } */ +/* { dg-lto-do link } */ +/* { dg-lto-options "-std=3Dc++17" } */ #include =20 extern void test(); --- ../_clean/gcc/testsuite/g++.dg/lto/pr89358_1.C 2019-04-15 00:04:48.0000= 00000 +0200 +++ gcc/testsuite/g++.dg/lto/pr89358_1.C 2019-04-16 13:14:44.000000000 +0200 @@ -1,4 +1,3 @@ -/* { dg-options "-std=3Dc++14" } */ #include =20 void test() TIA Dominique