On 9/25/19 12:10 PM, Kyrill Tkachov wrote:
On 9/24/19 7:47 PM, Matt Turner wrote:
> When -march=native is passed to host_detect_local_cpu to the backend,
> it overrides all command lines after it. That means
>
> $ gcc -march=native -march=armv8-a
>
> is treated as
>
> $ gcc -march=armv8-a -ma
On 9/24/19 7:47 PM, Matt Turner wrote:
When -march=native is passed to host_detect_local_cpu to the backend,
it overrides all command lines after it. That means
$ gcc -march=native -march=armv8-a
is treated as
$ gcc -march=armv8-a -march=native
Prune joined switches with Negative and Rejec
On Tue, Sep 24, 2019 at 1:24 AM Kyrill Tkachov
wrote:
>
> Hi Matt,
>
> On 9/24/19 5:04 AM, Matt Turner wrote:
> > When -march=native is passed to host_detect_local_cpu to the backend,
> > it overrides all command lines after it. That means
> >
> > $ gcc -march=native -march=armv8-a
> >
> > is tre
When -march=native is passed to host_detect_local_cpu to the backend,
it overrides all command lines after it. That means
$ gcc -march=native -march=armv8-a
is treated as
$ gcc -march=armv8-a -march=native
Prune joined switches with Negative and RejectNegative to allow
-march=armv8-a to overri
Hi Matt,
On 9/24/19 5:04 AM, Matt Turner wrote:
When -march=native is passed to host_detect_local_cpu to the backend,
it overrides all command lines after it. That means
$ gcc -march=native -march=armv8-a
is treated as
$ gcc -march=armv8-a -march=native
Prune joined switches with Negative a
When -march=native is passed to host_detect_local_cpu to the backend,
it overrides all command lines after it. That means
$ gcc -march=native -march=armv8-a
is treated as
$ gcc -march=armv8-a -march=native
Prune joined switches with Negative and RejectNegative to allow
-march=armv8-a to overri
On Thu, Feb 21, 2019 at 10:40:09AM -0800, H.J. Lu wrote:
> > Prune joined switches with Negative and RejectNegative to allow
> > -march=skylake-avx512 to override previous -march=native on command-line.
> >
> > gcc/
> >
> > PR driver/69471
> > * opts-common.c (prune_options): Also p
On Thu, Feb 14, 2019 at 5:51 AM H.J. Lu wrote:
>
> On Thu, Feb 14, 2019 at 12:03:30PM +0100, Jakub Jelinek wrote:
> > On Wed, Feb 13, 2019 at 06:27:51PM -0800, H.J. Lu wrote:
> > > --- a/gcc/doc/options.texi
> > > +++ b/gcc/doc/options.texi
> > > @@ -227,7 +227,10 @@ options, their @code{Negative}
On Thu, Feb 14, 2019 at 12:03:30PM +0100, Jakub Jelinek wrote:
> On Wed, Feb 13, 2019 at 06:27:51PM -0800, H.J. Lu wrote:
> > --- a/gcc/doc/options.texi
> > +++ b/gcc/doc/options.texi
> > @@ -227,7 +227,10 @@ options, their @code{Negative} properties should form
> > a circular chain.
> > For exam
On Wed, Feb 13, 2019 at 06:27:51PM -0800, H.J. Lu wrote:
> --- a/gcc/doc/options.texi
> +++ b/gcc/doc/options.texi
> @@ -227,7 +227,10 @@ options, their @code{Negative} properties should form a
> circular chain.
> For example, if options @option{-@var{a}}, @option{-@var{b}} and
> @option{-@var{c
On Thu, Feb 14, 2019 at 12:15:53AM +0100, Jakub Jelinek wrote:
> On Wed, Feb 13, 2019 at 03:08:01PM -0800, H.J. Lu wrote:
> > > How does this test verify that both -fno-builtin-* options are in effect?
> > > That is, how does it fail if you remove either or both of those options?
> > >
> >
> > Wit
On Wed, Feb 13, 2019 at 03:08:01PM -0800, H.J. Lu wrote:
> > How does this test verify that both -fno-builtin-* options are in effect?
> > That is, how does it fail if you remove either or both of those options?
> >
>
> Without -fno-builtin-free -fno-builtin-malloc
As you haven't discovered any u
On Wed, Feb 13, 2019 at 2:54 PM Joseph Myers wrote:
>
> On Wed, 13 Feb 2019, H.J. Lu wrote:
>
> > Like this?
>
> This patch is missing any updates to options.texi to discuss the
> interation of Negative and RejectNegative with Joined.
I will add something.
> > diff --git a/gcc/testsuite/gcc.dg/p
On Wed, 13 Feb 2019, H.J. Lu wrote:
> Like this?
This patch is missing any updates to options.texi to discuss the
interation of Negative and RejectNegative with Joined.
> diff --git a/gcc/testsuite/gcc.dg/pr69471-1.c
> b/gcc/testsuite/gcc.dg/pr69471-1.c
> new file mode 100644
> index 0
through bogus warnings that all of
> them are in effect.
> fbuiltin- is
> C ObjC C++ ObjC++ Joined
> and so neg_index is not -1, but the option index itself, but that is what
> the patch wants to use for march= etc. too.
> So, do we want a new *.opt flag that would enable this behavior, or key
>
On Wed, Feb 13, 2019 at 08:43:45AM +0100, Jakub Jelinek wrote:
> > It seems right in the march= case to handle that combination as
> > -march=foobar - but it's less clear if that must always be the case for
> > Joined options with negative versions (at least, the semantics would need
> > definin
On Wed, Feb 13, 2019 at 12:43:32AM +, Joseph Myers wrote:
> On Wed, 13 Feb 2019, Jakub Jelinek wrote:
>
> > On Tue, Feb 12, 2019 at 11:21:04PM +, Joseph Myers wrote:
> > > I think this is changing architecture-independent code in a way that is
> > > not clearly safe based on the architect
On Tue, Feb 12, 2019 at 4:43 PM Joseph Myers wrote:
>
> On Wed, 13 Feb 2019, Jakub Jelinek wrote:
>
> > On Tue, Feb 12, 2019 at 11:21:04PM +, Joseph Myers wrote:
> > > I think this is changing architecture-independent code in a way that is
> > > not clearly safe based on the architecture-indep
On Wed, 13 Feb 2019, Jakub Jelinek wrote:
> On Tue, Feb 12, 2019 at 11:21:04PM +, Joseph Myers wrote:
> > I think this is changing architecture-independent code in a way that is
> > not clearly safe based on the architecture-independent options design, in
> > order to address an architecture
On Tue, Feb 12, 2019 at 11:21:04PM +, Joseph Myers wrote:
> I think this is changing architecture-independent code in a way that is
> not clearly safe based on the architecture-independent options design, in
> order to address an architecture-specific problem. The exclusion of
Actually, I
On Tue, 12 Feb 2019, H.J. Lu wrote:
> > > Prune joined switches with negation to allow -march=skylake-avx512 to
> > > override previous -march=native on command-line.
> > >
> > > PR driver/69471
> > > * opts-common.c (prune_options): Also prune joined switches
> > > with ne
On Fri, Feb 8, 2019 at 3:09 PM H.J. Lu wrote:
>
> On Fri, Feb 8, 2019 at 3:02 PM H.J. Lu wrote:
> >
> > When -march=native is passed to host_detect_local_cpu to the backend,
> > it overrides all command lines after it. That means
> >
> > $ gcc -march=native -march=skylake-avx512
> >
> > is the t
* config/i386/i386.opt (march=): Add Negative(march=).
> (mtune=): Add Negative(mtune=).
Here is the updated patch.
--
H.J.
From a5a453e48f8560955cfa2e2db3b8f4f22b9cf9b1 Mon Sep 17 00:00:00 2001
From: "H.J. Lu"
Date: Fri, 8 Feb 2019 14:52:57 -0800
Subject: [PATCH] driver:
When -march=native is passed to host_detect_local_cpu to the backend,
it overrides all command lines after it. That means
$ gcc -march=native -march=skylake-avx512
is the treated as
$ gcc -march=skylake-avx512 -march=native
Prune joined switches with negation to allow -march=skylake-avx512 to
24 matches
Mail list logo