From: Richard Biener <richard.guenther@gmail.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: "Richard Earnshaw (lists)" <Richard.Earnshaw@arm.com>, gcc@gcc.gnu.org
Subject: Re: Documenting common C/C++ options
Date: Tue, 10 Oct 2023 13:15:27 +0200 [thread overview]
Message-ID: <CAFiYyc2POfWZxXTTY89f8YkT3K-ixbEPvDgXhhr2JFFB8Rio-g@mail.gmail.com> (raw)
In-Reply-To: <87pm1mag09.fsf@oldenburg.str.redhat.com>
On Tue, Oct 10, 2023 at 1:13 PM Florian Weimer via Gcc <gcc@gcc.gnu.org> wrote:
>
> * Richard Earnshaw:
>
> > On 10/10/2023 11:46, Richard Earnshaw (lists) via Gcc wrote:
> >> On 10/10/2023 10:47, Florian Weimer via Gcc wrote:
> >>> Currently, -fsigned-char and -funsigned-char are only documented as C
> >>> language options, although they work for C++ as well (and Objective-C
> >>> and Objective-C++, I assume, but I have not tested this). There does
> >>> not seem to be a place for this kind of options in the manual.
> >>>
> >>> The options -fshort-enums and -fshort-wchar are documented under
> >>> code-generation options, but this seems to be a bit of a stretch because
> >>> (at least for -fshort-wchar), these too seem to be more about front-end
> >>> behavior.
> >>>
> >>> What would be a good way to address this?
> >>>
> >>> Thanks,
> >>> Florian
> >>>
> >>
> >>
> >> All of these are ABI; so where ever it goes, it should be documented
> >> that changing them will potentially cause issues with any
> >> pre-compiled object files having different settings.
>
> > And you can add -f[un]signed-bitfield to that list as well.
>
> There's already a section for those ABI options that are like
> -fshort-enums:
>
> @node Code Gen Options
> @section Options for Code Generation Conventions
>
> Maybe we should move them over there.
>
> But that wasn't really the direction of my question. I was wondering
> where we should document a future C version of -fpermissive.
Options common to the C family are documented in 'C Dialect Options'
which says
"The following options control the dialect of C (or languages derived
from C, such as C++, Objective-C and Objective-C++) that the compiler
accepts:"
the options usually specify when they do not apply to all of the above
sibling languages (where it's not obvious).
Richard.
> Thanks,
> Florian
>
next prev parent reply other threads:[~2023-10-10 11:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-10 9:47 Florian Weimer
2023-10-10 10:46 ` Richard Earnshaw (lists)
2023-10-10 10:48 ` Richard Earnshaw (lists)
2023-10-10 11:11 ` Florian Weimer
2023-10-10 11:15 ` Richard Biener [this message]
2023-10-10 16:33 ` Jason Merrill
2023-10-10 17:15 ` Florian Weimer
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=CAFiYyc2POfWZxXTTY89f8YkT3K-ixbEPvDgXhhr2JFFB8Rio-g@mail.gmail.com \
--to=richard.guenther@gmail.com \
--cc=Richard.Earnshaw@arm.com \
--cc=fweimer@redhat.com \
--cc=gcc@gcc.gnu.org \
/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).