From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128288 invoked by alias); 21 Jul 2015 11:09:09 -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 128279 invoked by uid 89); 21 Jul 2015 11:09:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: cam-smtp0.cambridge.arm.com Received: from fw-tnat.cambridge.arm.com (HELO cam-smtp0.cambridge.arm.com) (217.140.96.140) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 21 Jul 2015 11:09:08 +0000 Received: from arm.com (e106375-lin.cambridge.arm.com [10.2.207.23]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id t6LB94pk001239; Tue, 21 Jul 2015 12:09:04 +0100 Date: Tue, 21 Jul 2015 11:14:00 -0000 From: James Greenhalgh To: Kyrill Tkachov Cc: GCC Patches , Marcus Shawcroft , Richard Earnshaw Subject: Re: [PATCH][AArch64][6/14] Implement TARGET_OPTION_SAVE/TARGET_OPTION_RESTORE Message-ID: <20150721110904.GA10028@arm.com> References: <55A7CBD2.7000302@arm.com> <55A90EE8.5040104@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55A90EE8.5040104@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg01736.txt.bz2 On Fri, Jul 17, 2015 at 03:19:20PM +0100, Kyrill Tkachov wrote: > > > This is a slight respin of this patch, handling the -moverride string more gracefully. > We need to explicitly save and restore it in TARGET_OPTION_SAVE otherwise the option gen machinery > gets confused about its type and during its printing uses the wrong format code for the pointer, leading to a warning that may trigger during bootstrap. > > Otherwise it is the same as the previous version. > > Bootstrapped and tested on aarch64. > I'd like to propose this version instead of the original. > > Ok? The ChangeLog looks outdated with respect to the patch, in particular: > (x_aarch64_isa_flags): Likewise. This is just "aarch64_isa_flags" in the file. > +TargetSave > +const char *x_aarch64_override_tune_string > + This is not mentioned. > (master=): Likewise. This doesn't exist. > +#undef TARGET_OPTION_SAVE > +#define TARGET_OPTION_SAVE aarch64_option_save > + This is not mentioned. In addition to the ChangeLog nits, > +/* Return the CPU corresponding to the enum CPU. > + If it doesn't specify a cpu, return the default. */ > + > +static const struct processor * > +aarch64_get_tune_cpu (enum aarch64_processor cpu) > +{ > + if (cpu != aarch64_none) > + return &all_cores[cpu]; > + > + return &all_cores[TARGET_CPU_DEFAULT & 0x3f]; > +} This looks strange to me, is there nothing we can do to make it clear what "0x3f" means in this context, or better yet to get rid of the two-in-one variable... OK with a fixed ChangeLog. Thanks, James