From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2028) id 23B8E3858C60; Wed, 29 Sep 2021 14:40:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23B8E3858C60 To: gcc-cvs-wwwdocs@gcc.gnu.org Subject: gcc-wwwdocs branch master updated. 6fce58b02b953ddcadf9d2f18aa35d8bef69fce5 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: e25fd8a37b818ee090f739fddd3e5df025f1e2f6 X-Git-Newrev: 6fce58b02b953ddcadf9d2f18aa35d8bef69fce5 Message-Id: <20210929144036.23B8E3858C60@sourceware.org> Date: Wed, 29 Sep 2021 14:40:36 +0000 (GMT) From: Qing Zhao 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: Wed, 29 Sep 2021 14:40:36 -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 6fce58b02b953ddcadf9d2f18aa35d8bef69fce5 (commit) from e25fd8a37b818ee090f739fddd3e5df025f1e2f6 (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 6fce58b02b953ddcadf9d2f18aa35d8bef69fce5 Author: qing zhao Date: Wed Sep 29 07:39:31 2021 -0700 gcc-12/changes.html: Uninitialized stack variables initialization update * htdocs/gcc-12/changes.html (Eliminating uninitialized variables): Item about the support for automatic static variable initialization. diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html index 31307107..0e2962ee 100644 --- a/htdocs/gcc-12/changes.html +++ b/htdocs/gcc-12/changes.html @@ -247,6 +247,25 @@ a work-in-progress.

Other significant improvements

+

Eliminating uninitialized variables

+ +
    +
  • GCC can now initialize all stack variables implicitly, including + padding. This is intended to eliminate all classes of uninitialized + stack variable flaws. Lack of explicit initialization will still + warn when -Wuninitialized is active. For best + debugging, use of the new command-line option + -ftrivial-auto-var-init=pattern can be used to fill + variables with a repeated 0xFE pattern, which tends to + illuminate many bugs (e.g. pointers receive invalid addresses, sizes + and indices are very large). For best production results, the new + command-line option -ftrivial-auto-var-init=zero can be + used to fill variables with 0x00, which tends to provide + a safer state for bugs (e.g. pointers are NULL, strings + are NUL filled, and sizes and indices are 0). +
  • +
+

Debugging formats

    ----------------------------------------------------------------------- Summary of changes: htdocs/gcc-12/changes.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) hooks/post-receive -- gcc-wwwdocs