[Bug other/110253] New: The documentation for -ftrapv seems to have an incomplete list of operations

2023-06-14 Thread gennaro.prota+gccbugzilla at gmail dot com via Gcc-bugs
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
() 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.

[Bug c++/110595] New: Documentation: typo in the docs for -Wmissing-include-dirs

2023-07-08 Thread gennaro.prota+gccbugzilla at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110595

Bug ID: 110595
   Summary: Documentation: typo in the docs for
-Wmissing-include-dirs
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: gennaro.prota+gccbugzilla at gmail dot com
  Target Milestone: ---

>From the manual
():

  -Wmissing-include-dirs (C, C++, Objective-C, Objective-C++ and Fortran only)

  Warn if a user-supplied include directory does not exist. This opions is
  disabled by default for C, C++, Objective-C and Objective-C++.

Note the typo "opions" (missing 't' and extra 's').

[Bug c++/110596] New: Documentation: typo in the docs for -Wnrvo

2023-07-08 Thread gennaro.prota+gccbugzilla at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110596

Bug ID: 110596
   Summary: Documentation: typo in the docs for -Wnrvo
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: gennaro.prota+gccbugzilla at gmail dot com
  Target Milestone: ---

>From the manual (currently,
, but I'm afraid this
is a moving target):

  -Wnrvo [...]
For instance, in the example below the compiler cannot elide copies from
both
v1 and b2, so it elides neither.

  std::vector f()
  {
std::vector v1, v2;
// ...
if (cond) return v1;
else return v2; // warning: not eliding copy
  }

Clearly, the text should say "v1 and v2", not "v1 and b2".