public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: "Richard Earnshaw (lists)" <Richard.Earnshaw@arm.com>
Cc: gcc@gcc.gnu.org
Subject: Re: Documenting common C/C++ options
Date: Tue, 10 Oct 2023 13:11:50 +0200	[thread overview]
Message-ID: <87pm1mag09.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <085179e2-3ed7-7bf3-b682-326656db378c@arm.com> (Richard Earnshaw's message of "Tue, 10 Oct 2023 11:48:09 +0100")

* 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.

Thanks,
Florian


  reply	other threads:[~2023-10-10 11:11 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 [this message]
2023-10-10 11:15       ` Richard Biener
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=87pm1mag09.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=Richard.Earnshaw@arm.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).