public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: James Greenhalgh <james.greenhalgh@arm.com>
To: Kyrill Tkachov <kyrylo.tkachov@arm.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
	       Marcus Shawcroft <Marcus.Shawcroft@arm.com>,
	       Richard Earnshaw <Richard.Earnshaw@arm.com>
Subject: Re: [PATCH][AArch64][6/14] Implement TARGET_OPTION_SAVE/TARGET_OPTION_RESTORE
Date: Tue, 21 Jul 2015 11:14:00 -0000	[thread overview]
Message-ID: <20150721110904.GA10028@arm.com> (raw)
In-Reply-To: <55A90EE8.5040104@arm.com>

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

  reply	other threads:[~2015-07-21 11:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-16 15:21 Kyrill Tkachov
2015-07-17 14:42 ` Kyrill Tkachov
2015-07-21 11:14   ` James Greenhalgh [this message]
2015-07-21 11:44     ` Kyrill Tkachov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150721110904.GA10028@arm.com \
    --to=james.greenhalgh@arm.com \
    --cc=Marcus.Shawcroft@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=kyrylo.tkachov@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).