[Bug other/94182] Improve -Wchar-subscripts documentation

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 3 15:25:27 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94182

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Sandra Loosemore <sandra@gcc.gnu.org>:

https://gcc.gnu.org/g:cf91f4b20441700d394f52523378c5b93eead8e7

commit r16-8445-gcf91f4b20441700d394f52523378c5b93eead8e7
Author: Sandra Loosemore <sloosemore@baylibre.com>
Date:   Fri Apr 3 15:02:22 2026 +0000

    doc: Improve documentation of -Wchar-subscripts and char signedness
[PR94182]

    The documentation of -Wchar-subscripts was missing cross-references to
    discussion elsewhere in the manual about how the char type may be either
    signed or unsigned.  Besides adding the references, I've also done some
    improvements to those two other sections.

    gcc/ChangeLog
            PR other/94182
            * doc/implement-c.texi (Characters implementation): Add
            cross-reference to more detailed discussion about signedness.
            * doc/invoke.texi (C Dialect Options): Combine -fsigned-char
            and -funsigned-char table entries since the following discussion
            applies to both.  Add an anchor so other things can point at it.
            (Warning Options): Add cross-references to the above two places.
            Clarify that the warning is given regardless of whether char is
            signed or unsigned.


More information about the Gcc-bugs mailing list