From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
-fstrict-flex-arrays
.
+ -fanalyzer
+ is still only suitable for analyzing C code.
+ In particular, using it on C++ is unlikely to give meaningful output.
@@ -163,6 +166,16 @@ a work-in-progress.
(PR90885)int
arguments that are file descriptors:
+
+ These are used by
+ -fanalyzer
+ to detect misuses of file descriptors.
+ -Wanalyzer-allocation-size
-Wanalyzer-deref-before-check
-Wanalyzer-exposure-through-uninit-copy
-Wanalyzer-fd-access-mode-mismatch
-Wanalyzer-fd-double-close
-Wanalyzer-fd-leak
-Wanalyzer-fd-phase-mismatch
+ (e.g. calling accept
on a socket before calling
+ listen
on it)-Wanalyzer-fd-type-mismatch
+ (e.g. using a stream socket operation on a datagram socket)-Wanalyzer-fd-use-after-close
-Wanalyzer-fd-use-without-check
along with special-casing handling of the behavior of
+ open
, close
, creat
,
+ dup
, dup2
, dup3
,
+ pipe
, pipe2
, read
,
+ and write
.
-Wanalyzer-imprecise-fp-arithmetic
-Wanalyzer-infinite-recursion
-Wanalyzer-jump-through-null
-Wanalyzer-out-of-bounds
-Wanalyzer-putenv-of-auto-var
-Wanalyzer-tainted-assertion
<stdarg.h>
:
+ -Wanalyzer-va-list-leak
for complaining about missing va_end
after a va_start
or va_copy
-Wanalyzer-va-list-use-after-va-end
for complaining about va_arg
or va_copy
used on a va_list
that's had va_end
called on it-Wanalyzer-va-arg-type-mismatch
for type-checking of va_arg
usage in interprocedural execution paths against the types of the parameters that were actually passed to the variadic call-Wanalyzer-va-list-exhausted
for complaining in interprocedural execution paths if va_arg
is used too many times on a va_list
-Wxor-used-as-pow
+ warns about uses of ^
, the exclusive or operator,
+ where it appears the user meant exponentiation
+ (PR90885)-shared
.
+ -fanalyzer
),
+ but it can also be used to capture other GCC warnings and errors in a
+ machine-readable format.
+ Specifically, the -fdiagnostics-format=
+ option has been extended to support these new values:
+ -fdiagnostics-format=sarif-stderr
-fdiagnostics-format=sarif-file
-fdiagnostics-format=json-stderr
, a synonym for the
+ existing -fdiagnostics-format=json
-fdiagnostics-format=json-file
json
-prefixed variants refer to GCC's own JSON diagnostic format.
+ -gz=zlib-gnu
was removed
and the option is ignored right now.-Warray-bounds=2
will no longer issue warnings for out of
+ -Warray-bounds=2
+ will no longer issue warnings for out of
bounds accesses to trailing struct members of one-element array type
anymore. Instead it diagnoses accesses to trailing arrays according to
-fstrict-flex-arrays
. printf
and scanf
format checking
- with -Wformat
for %wN
+ with -Wformat
for %wN
and %wfN
format length modifiers-std=c2x -Wpedantic
.
-Wenum-int-mismatch
warns about mismatches between an
- enumerated type and an integer type
+ -Wenum-int-mismatch
+ warns about mismatches between an enumerated type and an integer type
(PR105131)-Wself-move
warns when a value is moved to itself with
- std::move
- (PR81159)-Wdangling-reference
warns when a reference is bound to
- a temporary whose lifetime has ended
+ -Wself-move
+ warns when a value is moved to itself with std::move
+ (PR81159)-Wdangling-reference
+ warns when a reference is bound to a temporary whose lifetime
+ has ended
(PR106393)-Wpessimizing-move
and -Wredundant-move
- warnings have been extended to warn in more contexts.-Wpessimizing-move
+ and -Wredundant-move
+ warnings have been extended to warn in more contexts.-fstrict-flex-arrays
to control which array members are
- treated as flexible arrays.
+ -fstrict-flex-arrays
+ to control which array members are treated as flexible arrays.
-----------------------------------------------------------------------
Summary of changes:
htdocs/gcc-13/changes.html | 129 +++++++++++++++++++++++++++++++++++++++------
1 file changed, 114 insertions(+), 15 deletions(-)
hooks/post-receive
--
gcc-wwwdocs