https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110253
Bug ID: 110253 Summary: The documentation for -ftrapv seems to have an incomplete list of operations Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: gennaro.prota+gccbugzilla at gmail dot com Target Milestone: --- The documentation (<https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Code-Gen-Options.html>) for `-ftrapv` states: -ftrapv This option generates traps for signed overflow on addition, subtraction, multiplication operations. Is there any reason why division and negation (unary minus) are not mentioned? If the intent is to check for any signed overflow, I'd suggest not listing the operations at all, and simply say something like this, instead: This option generates traps for signed overflow.