From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: by sourceware.org (Postfix, from userid 2209)
id 1A7B73896C1C; Fri, 22 Jan 2021 20:44:44 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A7B73896C1C
To: gcc-cvs-wwwdocs@gcc.gnu.org
Subject: gcc-wwwdocs branch master updated.
2b7df0f0b68cb1cf89b4718f502d56263df983c1
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 62ddd954b0d9d4f607e3a0301658fca788a9a3df
X-Git-Newrev: 2b7df0f0b68cb1cf89b4718f502d56263df983c1
Message-Id: <20210122204444.1A7B73896C1C@sourceware.org>
Date: Fri, 22 Jan 2021 20:44:44 +0000 (GMT)
From: David Malcolm
X-BeenThere: gcc-cvs-wwwdocs@gcc.gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Gcc-cvs-wwwdocs mailing list
List-Unsubscribe: ,
List-Archive:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Fri, 22 Jan 2021 20:44:44 -0000
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gcc-wwwdocs".
The branch, master has been updated
via 2b7df0f0b68cb1cf89b4718f502d56263df983c1 (commit)
via f99f00f912a75f569895421ab83e396fb0533f6d (commit)
via 2bbf1bf467ec27e6bda8c40a7af5d09e46b33621 (commit)
via fc028704c31916bcc7bee24ebdc7eadd79edf494 (commit)
via ca033a4f79618381432533ee392b90fa4798c4ee (commit)
via c1f912276b003b5c8233172d25d008f466ed20df (commit)
from 62ddd954b0d9d4f607e3a0301658fca788a9a3df (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2b7df0f0b68cb1cf89b4718f502d56263df983c1
Author: David Malcolm
Date: Fri Jan 22 15:38:40 2021 -0500
gcc 11: add documentation link for -Wsizeof-array-div
diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html
index ba09587d..08a4c93a 100644
--- a/htdocs/gcc-11/changes.html
+++ b/htdocs/gcc-11/changes.html
@@ -184,7 +184,8 @@ a work-in-progress.
New warnings:
- -Wsizeof-array-div
, enabled by -Wall
, warns
+ -Wsizeof-array-div
,
+ enabled by -Wall
, warns
about divisions of two sizeof operators when the first one is applied
to an array and the divisor does not equal the size of the array
element.
commit f99f00f912a75f569895421ab83e396fb0533f6d
Author: David Malcolm
Date: Fri Jan 22 15:38:20 2021 -0500
gcc 11: add within where appropriate
diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html
index 67e29619..ba09587d 100644
--- a/htdocs/gcc-11/changes.html
+++ b/htdocs/gcc-11/changes.html
@@ -97,13 +97,13 @@ a work-in-progress.
In GCC 11 the column numbers default to being column numbers, respecting
multi-column characters. The old behavior can be restored using a new
option
- -fdiagnostics-column-unit=byte.
+ -fdiagnostics-column-unit=byte
.
There is also a new option
- -fdiagnostics-column-origin=,
+ -fdiagnostics-column-origin=
,
allowing the pre-existing default of the left-hand column being column
1 to be overridden if desired (e.g. for 0-based columns). The output
of
- -fdiagnostics-format=json
+ -fdiagnostics-format=json
has been extended to supply both byte counts and column numbers for all source locations.
@@ -112,7 +112,7 @@ a work-in-progress.
with whitespace or line number information, leading to misalignments
in the resulting output when compared with the actual source. Tab
characters are now printed as an appropriate number of spaces, using the
- -ftabstop
+ -ftabstop
option (which defaults to 8 spaces per tab stop).
@@ -173,10 +173,10 @@ a work-in-progress.
- The
no_stack_protector
attribute has been added to mark functions which should not be instrumented
with stack protection (-fstack-protector
).
- The existing
- malloc
+
malloc
attribute has been extended so that it can be used to identify
allocator/deallocator API pairs. A new
- -Wmismatched-dealloc
+ -Wmismatched-dealloc
warning will complain about incorrect calls. Additionally, the
static analyzer will use these attributes when checking for leaks,
double-frees, use-after-frees, and similar issues.
@@ -350,7 +350,7 @@ a work-in-progress.
The libgccjit API gained 10 new entry points:
@@ -523,29 +523,29 @@ a work-in-progress.
check new
/delete
and new[]
/delete[]
.
However, C++ is not yet properly supported by
- -fanalyzer
+ -fanalyzer
(for example, exception-handling is unimplemented).
- As noted above, the existing
- malloc
+
malloc
attribute has been extended so that it can be used to identify
allocator/deallocator API pairs. The analyzer will use these
attributes when checking for leaks, double-frees, use-after-frees, and
similar issues.
- A new
- -Wanalyzer-mismatching-deallocation
+
-Wanalyzer-mismatching-deallocation
warning has been added, covering such mismatches as using
scalar delete
rather vector delete[]
.
The analyzer has gained warnings
- -Wanalyzer-shift-count-negative,
- -Wanalyzer-shift-count-overflow,
- -Wanalyzer-write-to-const, and
- -Wanalyzer-write-to-string-literal,
+ -Wanalyzer-shift-count-negative
,
+ -Wanalyzer-shift-count-overflow
,
+ -Wanalyzer-write-to-const
, and
+ -Wanalyzer-write-to-string-literal
,
all enabled by default when
- -fanalyzer
+ -fanalyzer
is enabled.
The analyzer can now be extended by GCC plugins, allowing for
@@ -553,8 +553,8 @@ a work-in-progress.
GCC plugin to check for misuses of CPython's global interpreter lock
can be seen in the test suite
The analyzer has gained new debugging options
- -fdump-analyzer-json and
- -fno-analyzer-feasibility.
+ -fdump-analyzer-json
and
+ -fno-analyzer-feasibility
.
@@ -567,7 +567,7 @@ a work-in-progress.
- GCC has gained a new environment variable
- GCC_EXTRA_DIAGNOSTIC_OUTPUT
+
GCC_EXTRA_DIAGNOSTIC_OUTPUT
which can be used by IDEs to request machine-readable fix-it hints
without needing to adjust build flags.
commit 2bbf1bf467ec27e6bda8c40a7af5d09e46b33621
Author: David Malcolm
Date: Fri Jan 22 15:27:44 2021 -0500
gcc 11: document GCC_EXTRA_DIAGNOSTIC_OUTPUT
diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html
index 93c421e3..67e29619 100644
--- a/htdocs/gcc-11/changes.html
+++ b/htdocs/gcc-11/changes.html
@@ -562,8 +562,16 @@ a work-in-progress.
-
+Other significant improvements
+
+
+ - GCC has gained a new environment variable
+ GCC_EXTRA_DIAGNOSTIC_OUTPUT
+ which can be used by IDEs to request machine-readable fix-it hints
+ without needing to adjust build flags.
+
+
commit fc028704c31916bcc7bee24ebdc7eadd79edf494
Author: David Malcolm
Date: Fri Jan 22 15:09:34 2021 -0500
gcc 11: document new malloc attribute arguments; integrate into analyzer changes
diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html
index 3c18ef18..93c421e3 100644
--- a/htdocs/gcc-11/changes.html
+++ b/htdocs/gcc-11/changes.html
@@ -168,12 +168,20 @@ a work-in-progress.
C family
- - New attribute:
+
- New attributes:
- The
no_stack_protector
attribute has been added to mark functions which should not be instrumented
with stack protection (-fstack-protector
).
+ - The existing
+ malloc
+ attribute has been extended so that it can be used to identify
+ allocator/deallocator API pairs. A new
+ -Wmismatched-dealloc
+ warning will complain about incorrect calls. Additionally, the
+ static analyzer will use these attributes when checking for leaks,
+ double-frees, use-after-frees, and similar issues.
+
-
- New warnings:
-Wsizeof-array-div
, enabled by -Wall
, warns
@@ -507,15 +515,30 @@ a work-in-progress.
has been completely rewritten for GCC 11, fixing numerous bugs, and
allowing for the analyzer to scale to larger C source files.
- - As preliminary work towards eventually supporting C++, the
-
malloc
/free
checking within
- -fanalyzer
- has been generalized to also check new
/delete
- and new[]
/delete[]
, adding a new
- -Wanalyzer-mismatching-deallocation
- warning. However, C++ is not yet properly supported by
- -fanalyzer
- (for example, exception-handling is unimplemented).
+ - The analysis of allocations and deallocations has been generalized
+ beyond
malloc
and free
.
+
+ - As preliminary work towards eventually supporting C++, the
+
malloc
/free
checking will also
+ check new
/delete
+ and new[]
/delete[]
.
+ However, C++ is not yet properly supported by
+ -fanalyzer
+ (for example, exception-handling is unimplemented).
+
+ - As noted above, the existing
+ malloc
+ attribute has been extended so that it can be used to identify
+ allocator/deallocator API pairs. The analyzer will use these
+ attributes when checking for leaks, double-frees, use-after-frees, and
+ similar issues.
+
+ - A new
+ -Wanalyzer-mismatching-deallocation
+ warning has been added, covering such mismatches as using
+ scalar
delete
rather vector delete[]
.
+
+
- The analyzer has gained warnings
-Wanalyzer-shift-count-negative,
-Wanalyzer-shift-count-overflow,
commit ca033a4f79618381432533ee392b90fa4798c4ee
Author: David Malcolm
Date: Fri Jan 22 14:43:55 2021 -0500
gcc 11: libgccjit is no longer 'alpha'
diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html
index 05b182bc..3c18ef18 100644
--- a/htdocs/gcc-11/changes.html
+++ b/htdocs/gcc-11/changes.html
@@ -331,6 +331,12 @@ a work-in-progress.
libgccjit
+ - libgccjit was marked as merely "Alpha" quality when
+ originally added in GCC 5.
+ Given that we have maintained
+ API and ABI compatibility
+ since then and it is in use by various projects, we have removed that
+ caveat.
- libgccjit can now be built for MinGW
-
The libgccjit API gained 10 new entry points:
commit c1f912276b003b5c8233172d25d008f466ed20df
Author: David Malcolm
Date: Fri Jan 22 14:36:01 2021 -0500
gcc 11: -fanalyzer now supports GCC plugins
diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html
index 7eeffb98..05b182bc 100644
--- a/htdocs/gcc-11/changes.html
+++ b/htdocs/gcc-11/changes.html
@@ -519,6 +519,10 @@ a work-in-progress.
-fanalyzer
is enabled.
+ - The analyzer can now be extended by GCC plugins, allowing for
+ domain-specific path-sensitive warnings. An example of using a
+ GCC plugin to check for misuses of CPython's global interpreter lock
+ can be seen in the test suite
- The analyzer has gained new debugging options
-fdump-analyzer-json and
-fno-analyzer-feasibility.
-----------------------------------------------------------------------
Summary of changes:
htdocs/gcc-11/changes.html | 92 +++++++++++++++++++++++++++++++++-------------
1 file changed, 67 insertions(+), 25 deletions(-)
hooks/post-receive
--
gcc-wwwdocs