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>
Cc: Richard Earnshaw <Richard.Earnshaw@arm.com>,
	gcc Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH 2/2] [ARM] Add support for -mpure-code in thumb-1 (v6m)
Date: Mon, 13 Jan 2020 15:19:00 -0000	[thread overview]
Message-ID: <2035302c-66f2-f3e1-5c2f-22a602decd7e@foss.arm.com> (raw)
In-Reply-To: <df5592c9-c4da-bd12-0776-f3f362284a8f@foss.arm.com>

Hi Christophe,

On 12/17/19 3:31 PM, Kyrill Tkachov wrote:
>
> On 12/17/19 2:33 PM, Christophe Lyon wrote:
>> On Tue, 17 Dec 2019 at 11:34, Kyrill Tkachov
>> <kyrylo.tkachov@foss.arm.com> wrote:
>>> 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.
>> OK, thanks!
>>
>>> 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).
>>>
>> I didn't think about this :(
>> It currently says: "This option is only available when generating
>> non-pic code for M-profile targets with the MOVT instruction."
>>
>> I suggest to remove the "with the MOVT instruction" part. Is that OK
>> if I commit my patch and this doc change?
>
> Yes, I think that is simplest correct change to make.
>

Can you also send a patch to the changes.html page for GCC 10 making 
users aware that this restriction is now lifted?

Thanks,

Kyrill


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

  parent reply	other threads:[~2020-01-13 13:49 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
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 [this message]
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=2035302c-66f2-f3e1-5c2f-22a602decd7e@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).