public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kyrill Tkachov <kyrylo.tkachov@arm.com>
To: James Greenhalgh <james.greenhalgh@arm.com>,
	 Andrew Stubbs <ams@codesourcery.com>
Cc: Richard Earnshaw <Richard.Earnshaw@arm.com>,
	 "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [arm][patch] fix arm_neon_ok check on !arm_arch7
Date: Tue, 02 Dec 2014 14:01:00 -0000	[thread overview]
Message-ID: <547DC637.5060906@arm.com> (raw)
In-Reply-To: <20140923082716.GA28745@arm.com>


On 23/09/14 09:27, James Greenhalgh wrote:
> On Mon, Sep 15, 2014 at 11:56:03AM +0100, Andrew Stubbs wrote:
>> On 15/09/14 10:46, Richard Earnshaw wrote:
>>> Hmm, I wonder if arm_override_options should reject neon + (arch < 7).
>> Is this more to your taste?
> Is this really such a good idea? It causes carnage throughout the
> testsuite if you have configured with support for Neon and the testcase
> is written with dg-options for a pre-armv7-a -march value.
>
> For example in:
>    testsuite/gcc.target/arm/di-longlong64-sync-withhelpers.c
>
> Which forces -march=armv5.
>
> Perhaps you just have to fix the effective-target-ok tests - but then
> we lose swathes of test coverage.

This also causes subtle Linux kernel compile failures.
Over there they use make rules where they check if the compiler supports 
-march=armv5te and if not use -march=armv4t.
With this patch if the compiler is configured with something like 
--with-fpu=neon the test will fail with your error message,
even though the compiler supports -march=armv5te.

Kyrill


>
> Thanks,
> James
>
>> Andrew
>>
>> P.S. arm_override_options was renamed in 2010.
>> 2014-09-15  Andrew Stubbs  <ams@codesourcery.com>
>>
>> 	* gcc/config/arm/arm.c (arm_option_override): Reject -mfpu=neon
>> 	when architecture is older than ARMv7.
>>
>> Index: gcc/config/arm/arm.c
>> ===================================================================
>> --- gcc/config/arm/arm.c	(revision 215228)
>> +++ gcc/config/arm/arm.c	(working copy)
>> @@ -2845,6 +2845,9 @@
>>   
>>     arm_fpu_desc = &all_fpus[arm_fpu_index];
>>   
>> +  if (TARGET_NEON && !arm_arch7)
>> +    error ("target CPU does not support NEON");
>> +
>>     switch (arm_fpu_desc->model)
>>       {
>>       case ARM_FP_MODEL_VFP:


  parent reply	other threads:[~2014-12-02 14:01 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-13 21:39 Andrew Stubbs
2014-09-15  9:46 ` Richard Earnshaw
2014-09-15 10:56   ` Andrew Stubbs
2014-09-15 13:30     ` Richard Earnshaw
2014-09-17 11:00       ` Andrew Stubbs
2014-09-23  8:27     ` James Greenhalgh
2014-09-23 15:22       ` Stubbs, Andrew
2014-10-15 16:37         ` Jiong Wang
2014-10-15 16:59           ` Andrew Stubbs
2014-10-16 13:53             ` Jiong Wang
2014-11-07 10:35               ` Andrew Stubbs
2014-11-14 11:17                 ` Andrew Stubbs
2014-11-26 13:11                   ` Andrew Stubbs
2014-11-27 17:28                     ` Mike Stump
2014-11-27 19:29                       ` Andrew Stubbs
2014-11-28  8:42                         ` Mike Stump
2014-12-02 14:01       ` Kyrill Tkachov [this message]
2014-12-02 21:45         ` Ramana Radhakrishnan
2014-12-03 15:03           ` Andrew Stubbs
2014-12-23 17:32             ` Andrew Stubbs
2015-01-12 14:14               ` Andrew Stubbs
2015-01-12 14:27                 ` Ramana Radhakrishnan
2015-01-13 21:08                   ` Andrew Stubbs
2015-01-14  9:06                     ` Ramana Radhakrishnan
2015-01-14 15:25                       ` Andrew Stubbs

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=547DC637.5060906@arm.com \
    --to=kyrylo.tkachov@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=ams@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=james.greenhalgh@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).