From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130571 invoked by alias); 23 Jan 2020 09:43:35 -0000 Mailing-List: contact gcc-cvs-wwwdocs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-cvs-wwwdocs-owner@gcc.gnu.org Received: (qmail 130523 invoked by uid 10089); 23 Jan 2020 09:43:34 -0000 Date: Thu, 23 Jan 2020 09:43:00 -0000 Message-ID: <20200123094334.130520.qmail@sourceware.org> From: msebor@gcc.gnu.org To: gcc-cvs-wwwdocs@gcc.gnu.org Subject: gcc-wwwdocs branch master updated. 26243d7b0213edbfba25c5fb2ae09103e55609d5 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 6765950ce9e3d3785eece238c1d4f626a99f0953 X-Git-Newrev: 26243d7b0213edbfba25c5fb2ae09103e55609d5 X-SW-Source: 2020/txt/msg00064.txt 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 26243d7b0213edbfba25c5fb2ae09103e55609d5 (commit) from 6765950ce9e3d3785eece238c1d4f626a99f0953 (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 26243d7b0213edbfba25c5fb2ae09103e55609d5 Author: Martin Sebor Date: Thu Jan 23 10:40:36 2020 +0100 Mention new features. Add version to links to GCC manuals. diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html index 6644010..fb1b108 100644 --- a/htdocs/gcc-10/changes.html +++ b/htdocs/gcc-10/changes.html @@ -54,21 +54,34 @@ a work-in-progress.

General Improvements

-

The following built-in functions have been introduced.

    -
  • __builtin_roundeven for the corresponding function from - ISO/IEC TS 18661. +
  • New built-in functions: +
      +
    • The + __has_builtin + built-in preprocessor operator can be used to query support + for built-in functions provided by GCC and other compilers + that support it. +
    • +
    • __builtin_roundeven for the corresponding function from + ISO/IEC TS 18661. +
    • +
  • - A new option, -fallocation-dce - has been added. The option removes unneeded pairs of new - and delete operators. + New command-line options: +
      +
    • -fallocation-dce + removes unneeded pairs of new and delete + operators. +
    • +
  • Profile driven optimization improvements:
    • - Using -fprofile-values, + Using -fprofile-values, an instrumented binary can track multiple values (up to 4) for e.g. indirect calls and provide more precise profile information.
    • @@ -78,7 +91,7 @@ a work-in-progress.

      Link-time optimization improvements:
      • - A new binary lto-dump + A new binary lto-dump has been added. The program can dump various information about a LTO bytecode object file.
      • @@ -102,7 +115,61 @@ a work-in-progress.

        - +

        C family

        +
          +
        • New attributes: +
            + The access function and type attribute has been added + to describe how a function accesses objects passed to it by pointer + or reference, and to associate such arguments with integer arguments + denoting the objects' sizes. The attribute is used to enable + the detection of invalid accesses by user-defined functions, such + as those diagnosed by -Wstringop-overflow. +
          +
        • +
        • New warnings: +
            +
          • -Wstring-compare, enabled + by -Wextra, warns about equality and inequality + expressions between zero and the result of a call to either + strcmp and strncmp that evaluate to + a constant as a result of the length of one argument being greater + than the size of the array pointed to by the other. +
          • +
          • -Wzero-length-bounds, + enabled by -Warray-bounds, warns about accesses to + elements of zero-length arrays that might overlap other members + of the same object. +
          • +
          +
        • +
        • Enhancements to existing warnings: +
            +
          • -Warray-bounds + detects more out-of-bounds accesses to member arrays as well as + accesses to elements of zero-length arrays. +
          • +
          • -Wformat-overflow + makes full use of string length information computed by + the strlen optimization pass. +
          • +
          • -Wrestrict + detects overlapping accesses to dynamically allocated objects. +
          • +
          • -Wreturn-local-addr + diagnoses more instances of return statements returning + addresses of automatic variables. +
          • +
          • -Wstringop-overflow + detects more out-of-bounds stores to member arrays including + zero-length arrays, dynamically allocated objects and variable length + arrays, as well as more instances of reads of unterminated character + arrays by string built-in functions. The warning also detects + out-of-bounds accesses by calls to user-defined functions declared + with the new attribute access. +
          • +
          +

        C

          @@ -185,6 +252,20 @@ a work-in-progress.

          initializer-list
        +
      • New warnings: +
          +
        • -Wmismatched-tags, + disabled by default, warns about declarations of structs, classes, + and class templates and their specializations with a class-key that + does not match either the definition or the first declaration if no + definition is provided. The option is provided to ease portability + to Windows-based compilers. +
        • +
        • -Wredundant-tags, + disabled by default, warns about redundant class-key and + enum-key in contexts where the key can be eliminated without + causing an syntactic ambiguity. +
        • G++ can now detect modifying constant objects in constexpr evaluation (which is undefined behavior). @@ -461,7 +542,7 @@ a work-in-progress.

          and without the need to provide options -B and -mmcu=. See - AVR + AVR command-line options for details. This feature is also available in GCC 9.3+ and GCC 8.4+.
        • ----------------------------------------------------------------------- Summary of changes: htdocs/gcc-10/changes.html | 101 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 91 insertions(+), 10 deletions(-) hooks/post-receive -- gcc-wwwdocs