public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug web/114496] New: Documentation: "Non-Bugs" page should update/mention something about -Wsign-conversion
@ 2024-03-27 8:12 Explorer09 at gmail dot com
2024-03-27 8:18 ` [Bug other/114496] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Explorer09 at gmail dot com @ 2024-03-27 8:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114496
Bug ID: 114496
Summary: Documentation: "Non-Bugs" page should update/mention
something about -Wsign-conversion
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: web
Assignee: unassigned at gcc dot gnu.org
Reporter: Explorer09 at gmail dot com
Target Milestone: ---
Section 14.8 of GCC manual
"Certain Changes We Don’t Want to Make"
(https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Non-bugs.html)
This item:
> Warning about assigning a signed value to an unsigned variable.
> Such assignments must be very common; warning about them would cause more annoyance than good.
Perhaps GCC should clarify this a bit. GCC now has the "-Wsign-conversion"
option that warns about similar signed-to-unsigned conversions. So what feature
in particular did GCC choose not to implement? The difference between this
"non-bug" item and the existing "-Wsign-conversion" is what I wish to see.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug other/114496] Documentation: "Non-Bugs" page should update/mention something about -Wsign-conversion 2024-03-27 8:12 [Bug web/114496] New: Documentation: "Non-Bugs" page should update/mention something about -Wsign-conversion Explorer09 at gmail dot com @ 2024-03-27 8:18 ` pinskia at gcc dot gnu.org 2024-03-27 8:25 ` pinskia at gcc dot gnu.org 2024-03-27 15:40 ` egallager at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-03-27 8:18 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114496 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug other/114496] Documentation: "Non-Bugs" page should update/mention something about -Wsign-conversion 2024-03-27 8:12 [Bug web/114496] New: Documentation: "Non-Bugs" page should update/mention something about -Wsign-conversion Explorer09 at gmail dot com 2024-03-27 8:18 ` [Bug other/114496] " pinskia at gcc dot gnu.org @ 2024-03-27 8:25 ` pinskia at gcc dot gnu.org 2024-03-27 15:40 ` egallager at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-03-27 8:25 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114496 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-03-27 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- . ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug other/114496] Documentation: "Non-Bugs" page should update/mention something about -Wsign-conversion 2024-03-27 8:12 [Bug web/114496] New: Documentation: "Non-Bugs" page should update/mention something about -Wsign-conversion Explorer09 at gmail dot com 2024-03-27 8:18 ` [Bug other/114496] " pinskia at gcc dot gnu.org 2024-03-27 8:25 ` pinskia at gcc dot gnu.org @ 2024-03-27 15:40 ` egallager at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: egallager at gcc dot gnu.org @ 2024-03-27 15:40 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114496 --- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> --- Maybe the update could be just to clarify the "EnabledBy" rules for the warning? i.e., something like "-Wsign-conversion is only and will only ever be enabled by -Wconversion in C, and we will never have it enabled by -Wall or -Wextra (unlike -Wsign-compare, which is enabled by -Wall in C++, and -Wextra in C)." (and maybe also include something about the new -Warith-conversion flag too?) ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-03-27 15:40 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-03-27 8:12 [Bug web/114496] New: Documentation: "Non-Bugs" page should update/mention something about -Wsign-conversion Explorer09 at gmail dot com 2024-03-27 8:18 ` [Bug other/114496] " pinskia at gcc dot gnu.org 2024-03-27 8:25 ` pinskia at gcc dot gnu.org 2024-03-27 15:40 ` egallager at gcc dot gnu.org
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).