From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4065 invoked by alias); 10 Jul 2019 12:53:39 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 4029 invoked by uid 89); 10 Jul 2019 12:53:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-4.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:713, Deprecated, frepo=e2, HContent-Transfer-Encoding:8bit?= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 10 Jul 2019 12:53:38 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 99386AFF3; Wed, 10 Jul 2019 12:53:35 +0000 (UTC) Subject: Re: [PATCH] Deprecate -frepo option. To: Nathan Sidwell , Jason Merrill , Richard Biener Cc: Jakub Jelinek , Jonathan Wakely , Iain Sandoe , "gcc@gcc.gnu.org" , David Edelsohn , Jan Hubicka , GCC Patches References: <884b9feb-3e71-db00-8c72-8e096bf75c1e@suse.cz> <69a11998-93c1-d61d-ba31-ac93bcbb353a@suse.cz> <20190621115838.GX815@tucnak> <79fcb5a4-0eba-d39f-e7ca-389f371cd48c@suse.cz> <20190621141309.GY815@tucnak> <140a1eb3-9652-9516-0274-19977fa3021d@suse.cz> <5c3aaf4a-b68a-f7a1-38b7-2e83182b0bc4@suse.cz> <84ddcfbc-2d6a-031a-254b-e8c2e165bf85@redhat.com> <7ba9e2ff-5f5f-8459-401a-3a621aba6cd6@suse.cz> <232b7766-7417-03a9-3119-d324190b139d@acm.org> From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Message-ID: Date: Wed, 10 Jul 2019 12:53:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <232b7766-7417-03a9-3119-d324190b139d@acm.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00090.txt.bz2 On 7/10/19 2:48 PM, Nathan Sidwell wrote: > On 7/10/19 7:28 AM, Martin Liška wrote: > >> Great, thank you. >> >> There's a patch for deprecating of the option in GCC 9 changes. >> >> May I install the patch right now or should I wait? >> > > I think there needs to be a code patch so that use of the option gives a warning. > > nathan > That's done by 'Deprecated' keyword put on frepo in *.opt file: $ ./gcc/xgcc -Bgcc -frepo /tmp/main.c xgcc: warning: switch ‘-frepo’ is no longer supported I've already used the same mechanism for other deprecated options e.g.: $ ./gcc/xgcc -Bgcc -mmpx /tmp/main.c xgcc: warning: switch ‘-mmpx’ is no longer supported Martin