From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Patrick Herbst <paherbst@gmail.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: how does -Wstringop-truncation work?
Date: Mon, 30 Jan 2023 23:36:51 +0000 [thread overview]
Message-ID: <CAH6eHdR6ZJi=tXP_eUqqOU3-T7vCy5pjxq-5n39j_pa2iKAEmQ@mail.gmail.com> (raw)
In-Reply-To: <CACMdL5+OX879q0Fhbuqd65P5_kL+zSwstKOX0FbYd_1-bFUWtg@mail.gmail.com>
On Mon, 30 Jan 2023 at 22:36, Patrick Herbst via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
> but i cannot get it to display if not using optimization. I've even
> tried manually adding all the -f options documented for -O1 to
> understand what other flags might be needed to generate the warning.
> I've had no success.
Because you can't enable optimization with -f options.
See https://gcc.gnu.org/wiki/FAQ#optimization-options
If you don't use one of the -Ox optimization options then **no**
optimization passes run at all, so enabling and disabling individual
optimization passes with -fxxx options has no effect, They're just
skipped completely.
prev parent reply other threads:[~2023-01-30 23:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 22:35 Patrick Herbst
2023-01-30 23:09 ` Segher Boessenkool
2023-01-30 23:16 ` Patrick Herbst
2023-01-30 23:36 ` 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='CAH6eHdR6ZJi=tXP_eUqqOU3-T7vCy5pjxq-5n39j_pa2iKAEmQ@mail.gmail.com' \
--to=jwakely.gcc@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=paherbst@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).