public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kyrill Tkachov <kyrylo.tkachov@foss.arm.com>
To: Christophe Lyon <christophe.lyon@linaro.org>,
	Richard Earnshaw <Richard.Earnshaw@arm.com>
Cc: gcc Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH 2/2] [ARM] Add support for -mpure-code in thumb-1 (v6m)
Date: Tue, 17 Dec 2019 11:02:00 -0000	[thread overview]
Message-ID: <a9d8d59d-603c-02b4-acb4-5ddd61aa326d@foss.arm.com> (raw)
In-Reply-To: <CAKdteOZvDk4WiL8FUvrOjyMpsZLABK-a8BOO7aiAOp1aUssWGQ@mail.gmail.com>

Hi Christophe,

On 11/18/19 9:00 AM, Christophe Lyon wrote:
> On Wed, 13 Nov 2019 at 15:46, Christophe Lyon
> <christophe.lyon@linaro.org> wrote:
> >
> > On Tue, 12 Nov 2019 at 12:13, Richard Earnshaw (lists)
> > <Richard.Earnshaw@arm.com> wrote:
> > >
> > > On 18/10/2019 14:18, Christophe Lyon wrote:
> > > > +      bool not_supported = arm_arch_notm || flag_pic || 
> TARGET_NEON;
> > > >
> > >
> > > This is a poor name in the context of the function as a whole.  What's
> > > not supported.  Please think of a better name so that I have some idea
> > > what the intention is.
> >
> > That's to keep most of the code common when checking if -mpure-code
> > and -mslow-flash-data are supported.
> > These 3 cases are common to the two compilation flags, and
> > -mslow-flash-data still needs to check TARGET_HAVE_MOVT in addition.
> >
> > Would "common_unsupported_modes" work better for you?
> > Or I can duplicate the "arm_arch_notm || flag_pic || TARGET_NEON" in
> > the two tests.
> >
>
> Hi,
>
> Here is an updated version, using "common_unsupported_modes" instead
> of "not_supported", and fixing the typo reported by Kyrill.
> The ChangeLog is still the same.
>
> OK?


The name looks ok to me. Richard had a concern about Armv8-M Baseline, 
but I do see it being supported as you pointed out.

So I believe all the concerns are addressed.

Thus the code is ok. However, please also updated the documentation for 
-mpure-code in invoke.texi (it currently states that a MOVT instruction 
is needed).

Thanks,

Kyrill



>
> Thanks,
>
> Christophe
>
> > Thanks,
> >
> > Christophe
> >
> > >
> > > R.

  parent reply	other threads:[~2019-12-17 10:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-18 13:18 Christophe Lyon
2019-11-03 15:07 ` Christophe Lyon
2019-11-12  9:12   ` Christophe Lyon
2019-11-12 10:35 ` Kyrill Tkachov
2019-11-13 14:42   ` Christophe Lyon
2019-11-12 11:17 ` Richard Earnshaw (lists)
2019-11-13 14:46   ` Christophe Lyon
2019-11-18  9:04     ` Christophe Lyon
2019-11-26 15:39       ` Christophe Lyon
2019-12-05 10:13         ` Christophe Lyon
2019-12-11 17:19           ` Christophe Lyon
2019-12-17 10:26             ` Christophe Lyon
2019-12-17 11:02       ` Kyrill Tkachov [this message]
2019-12-17 14:36         ` Christophe Lyon
2019-12-17 15:39           ` Kyrill Tkachov
2019-12-17 15:51             ` Christophe Lyon
2020-01-13 15:19             ` Kyrill Tkachov
2020-01-14 14:09               ` Christophe Lyon
2020-01-14 14:10                 ` Kyrill Tkachov
2020-01-14 14:38                   ` Christophe Lyon
2019-11-12 11:27 ` Richard Earnshaw (lists)
2019-11-13 14:49   ` Christophe Lyon

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=a9d8d59d-603c-02b4-acb4-5ddd61aa326d@foss.arm.com \
    --to=kyrylo.tkachov@foss.arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=christophe.lyon@linaro.org \
    --cc=gcc-patches@gcc.gnu.org \
    /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).