public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Vanida Plamondon <vanida.plamondon@gmail.com>
Cc: GCC Development <gcc@gcc.gnu.org>
Subject: Re: Ryzen PPA znver1 optimizations
Date: Fri, 08 Mar 2019 22:44:00 -0000	[thread overview]
Message-ID: <CAH6eHdQC9SnTN_eVzFRXJ-=YmfgJ4j=wKMUrOKbLOx=nyo4rYQ@mail.gmail.com> (raw)
In-Reply-To: <CAMm9xBzK-YBD8f2Yfq_Vc22xtMt5_4faof8a3gHv+8-4YNt76w@mail.gmail.com>

On Fri, 8 Mar 2019 at 22:00, Vanida Plamondon
<vanida.plamondon@gmail.com> wrote:
>
> OK, so it seems I need to give more information to clarify what I am
> trying to do.
>
> I am not invoking or configuring gcc directly.

(If you're creating a toolchain then surely you're configuring GCC.)

> I am creating debian
> source code packages which are then dispatched to launchpad.net, which
> then automatically compiles and builds my package based on the debian
> configuration files. I am trying to created a toolchain that does this
> automatically while also setting the znver1 optimisations
> automatically.
>
> As far as I can tell, the --with-arch= and --with-cpu= gcc
> configuration options set defaults, and do not enforce compilation
> with these options if a package specifically configures a different
> cpu or architecture, so correct me if I am wrong.

If by "configures a different cpu or architecture" you mean "uses the
-march option when invoking GCC" then you're correct.

Using --with-arch=znver1 will make GCC automatically select that
architecture. But it won't prevent that automatic selection being
overridden by an explicit -march option.


> Regardless, I do
> have those options set in the various versions of gcc in my toolchain,
> but I need gcc to ignore rogue packages that configure to a different
> x86 architecture. My PPAs only target znver1 for x86 code, so nothing
> breaks if my toolchain ignores other x86 architectures.
>
> Since I am trying to create an automatic toolchain, it would be much
> easier to have a gcc that ignores non-default x86 configuration
> options then it is to try to create a script that finds, catches, and
> corrects an upstream package that uses a non-default configuration.

Yes, that does seem simpler.

> If the --with-arch= and --with-cpu= gcc configuration options cause
> gcc to ignore non-default configure options, then please, let me know.

I find this use of "configure options" confusing too. You're talking
about flags passed to GCC when invoking it, not "configure options",
right?

  reply	other threads:[~2019-03-08 22:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-08  7:56 Vanida Plamondon
2019-03-08 11:00 ` Richard Biener
2019-03-08 11:28   ` Vanida Plamondon
2019-03-08 20:58     ` Jonathan Wakely
2019-03-08 22:00       ` Vanida Plamondon
2019-03-08 22:44         ` Jonathan Wakely [this message]
2019-03-08 22:59           ` Vanida Plamondon

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='CAH6eHdQC9SnTN_eVzFRXJ-=YmfgJ4j=wKMUrOKbLOx=nyo4rYQ@mail.gmail.com' \
    --to=jwakely.gcc@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=vanida.plamondon@gmail.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).