public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Tom Kacvinsky <tkacvins@gmail.com>
Cc: Andrew Haley <aph@redhat.com>, gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: -march=x86_64 -mtune=generic question
Date: Thu, 26 May 2022 12:05:27 +0100	[thread overview]
Message-ID: <CAH6eHdTQmEfAOVSmH-zFOVOydhVUBrF8ArCP_VPqU5TCc_WHxA@mail.gmail.com> (raw)
In-Reply-To: <CAG_eJLd3hPam3GHXA+7Maj1McNW=JoMMC9PaW2+sCn5OL063sQ@mail.gmail.com>

On Thu, 26 May 2022 at 11:15, Tom Kacvinsky via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
> A colleague of mine reminded me of this thread:
>
> slowdown with -std=gnu18 with respect to -std=c99
>
> So I checked what the default C standard for GCC 8.3.0 is (gnu11) and 12.1.0
> (gnu17).  So I used -std=c99 with the GCC 12.1 build of our code, and things
> went back to normal (and sometimes a teensy bit better).

N.B. the issue in that thread was the difference between -std=cNN and
-std=gnuNN, not the changes in the value of NN.

So you should be able to use -std=c17 and get the same performance as -std=c99.

      reply	other threads:[~2022-05-26 11:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-25 18:58 Tom Kacvinsky
2022-05-26  7:11 ` Andrew Haley
2022-05-26 10:13   ` Tom Kacvinsky
2022-05-26 11:05     ` Jonathan Wakely [this message]

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=CAH6eHdTQmEfAOVSmH-zFOVOydhVUBrF8ArCP_VPqU5TCc_WHxA@mail.gmail.com \
    --to=jwakely.gcc@gmail.com \
    --cc=aph@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=tkacvins@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).