From patchwork Fri Jan 22 20:50:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1430551 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=cD11RfZZ; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DMrxw6dz3z9sCq for ; Sat, 23 Jan 2021 07:50:44 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DCE4F39960CF; Fri, 22 Jan 2021 20:50:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DCE4F39960CF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1611348638; bh=2TIzqTUFufiA31gBdUtSyWvHcpL3M5VoHpOALESjrA8=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=cD11RfZZXiurBdfBuyi8pjF/jUJJoy+aQNo0oqwC5OxT3Z/uaBEjJ3OrKvWGQV3WJ ucYHc6pWbKZU3izBEIuPs1jQinl537Aw2PbB8uy7iHcTrjHXvhuZwsuez5eVE2PHfM z6/YLImL3msY4+uIDqurEjaQSXI9lJrXasJmczd8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 1C3E0398E484 for ; Fri, 22 Jan 2021 20:50:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1C3E0398E484 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-341-IqaGGkDyPfyF7jmUUTIPLQ-1; Fri, 22 Jan 2021 15:50:33 -0500 X-MC-Unique: IqaGGkDyPfyF7jmUUTIPLQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1F78C8735C1 for ; Fri, 22 Jan 2021 20:50:32 +0000 (UTC) Received: from t470.redhat.com (ovpn-112-159.phx2.redhat.com [10.3.112.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB93D6F948; Fri, 22 Jan 2021 20:50:31 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH 1/6] gcc 11: -fanalyzer now supports GCC plugins Date: Fri, 22 Jan 2021 15:50:19 -0500 Message-Id: <20210122205024.470734-2-dmalcolm@redhat.com> In-Reply-To: <20210122205024.470734-1-dmalcolm@redhat.com> References: <20210122205024.470734-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Malcolm via Gcc-patches From: David Malcolm Reply-To: David Malcolm Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" --- htdocs/gcc-11/changes.html | 4 ++++ 1 file changed, 4 insertions(+) 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. From patchwork Fri Jan 22 20:50:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1430553 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=isMMYzCb; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DMry44ksQz9sRR for ; Sat, 23 Jan 2021 07:50:52 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 792EB39DC49F; Fri, 22 Jan 2021 20:50:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 792EB39DC49F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1611348650; bh=pDLphCDU239kqUCc39PYc8CFVvs0ooZwgRa22glzUeQ=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=isMMYzCb0saQu66umaBxKJ5lufGu5PaW7L1qg9vaLf+YfccR6Vg1qylD/enpVRdjq 15oS2CJbqWhaKlFTmYXiOAQpfn8Xo+NY1y1U5ZvWn/rnxsBMd21NpWMwDSV/j28YLG 6BGMEc+JU1h6UTNxvOuFB8mJEJ450wzH/vtY9Xd4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id E4088398EC07 for ; Fri, 22 Jan 2021 20:50:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E4088398EC07 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-76-jMQ_DlwFP3GG7tBJ4ITgQw-1; Fri, 22 Jan 2021 15:50:45 -0500 X-MC-Unique: jMQ_DlwFP3GG7tBJ4ITgQw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 49BEC10054FF for ; Fri, 22 Jan 2021 20:50:44 +0000 (UTC) Received: from t470.redhat.com (ovpn-112-159.phx2.redhat.com [10.3.112.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id E228E5B4A6; Fri, 22 Jan 2021 20:50:43 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH 2/6] gcc 11: libgccjit is no longer 'alpha' Date: Fri, 22 Jan 2021 15:50:21 -0500 Message-Id: <20210122205024.470734-3-dmalcolm@redhat.com> In-Reply-To: <20210122205024.470734-1-dmalcolm@redhat.com> References: <20210122205024.470734-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Malcolm via Gcc-patches From: David Malcolm Reply-To: David Malcolm Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" --- htdocs/gcc-11/changes.html | 6 ++++++ 1 file changed, 6 insertions(+) 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: From patchwork Fri Jan 22 20:50:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1430556 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=Fm3JlP+7; dkim-atps=neutral Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DMryH72cTz9sCq for ; Sat, 23 Jan 2021 07:51:03 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AA2FB39DC4FF; Fri, 22 Jan 2021 20:50:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA2FB39DC4FF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1611348651; bh=QrXdWqiaDYq8MvAIqbHfeoGx0o7zU/nL8R9qbbhXljE=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Fm3JlP+7tIRVHA/S0xBx2TQL22sa1nsluiIeP7jlSU5UJMW+G5h+TvjSBqkqv0usX yEJFCUh/PYWcHY7Wmgv7yWSR/ajhsC7JRP8sUH5HhXDTZUq0MAyPn5sgK8JrhRLyWJ rfgVSXRAU141XzD8Af6Tj5YYIWgXY9oZFcIRBjqI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id BFE2D39DC497 for ; Fri, 22 Jan 2021 20:50:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BFE2D39DC497 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-273-PAlq71w9N_mWn_xkA2r5bg-1; Fri, 22 Jan 2021 15:50:45 -0500 X-MC-Unique: PAlq71w9N_mWn_xkA2r5bg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C32E051E0 for ; Fri, 22 Jan 2021 20:50:44 +0000 (UTC) Received: from t470.redhat.com (ovpn-112-159.phx2.redhat.com [10.3.112.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6D6379CA0; Fri, 22 Jan 2021 20:50:44 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH 3/6] gcc 11: document new malloc attribute arguments; integrate into analyzer changes Date: Fri, 22 Jan 2021 15:50:22 -0500 Message-Id: <20210122205024.470734-4-dmalcolm@redhat.com> In-Reply-To: <20210122205024.470734-1-dmalcolm@redhat.com> References: <20210122205024.470734-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Malcolm via Gcc-patches From: David Malcolm Reply-To: David Malcolm Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" --- htdocs/gcc-11/changes.html | 45 ++++++++++++++++++++++++++++---------- 1 file changed, 34 insertions(+), 11 deletions(-) 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, From patchwork Fri Jan 22 20:50:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1430555 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=ARegFauk; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DMry90YV0z9sRR for ; Sat, 23 Jan 2021 07:50:57 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 169F439DC4F8; Fri, 22 Jan 2021 20:50:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 169F439DC4F8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1611348651; bh=sDZjLvC7uNQA+rLKf3vOVxIjAG5fnD2/Akz08eA39ro=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=ARegFaukYGr22hrqUOq/0an8Ishm55Aq33TI3YXPvFImeihKlNDF/dGtWWRef2mCA 9bOEHSGXz6bjMqwKboi/Fu4h7XpRTIIvi3varH51psBhdA9U0eKgm+Y7XzqgZqRxD/ o69Nz1sKa+d/K40D0Lrw0AW5KeNapp6zJ3oBMu6I= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id E7E8639DC49A for ; Fri, 22 Jan 2021 20:50:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E7E8639DC49A Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-223-OIFq32CIOEeefQb-EyQsWg-1; Fri, 22 Jan 2021 15:50:46 -0500 X-MC-Unique: OIFq32CIOEeefQb-EyQsWg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4AA2A1005504 for ; Fri, 22 Jan 2021 20:50:45 +0000 (UTC) Received: from t470.redhat.com (ovpn-112-159.phx2.redhat.com [10.3.112.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id E889B9CA0; Fri, 22 Jan 2021 20:50:44 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH 4/6] gcc 11: document GCC_EXTRA_DIAGNOSTIC_OUTPUT Date: Fri, 22 Jan 2021 15:50:23 -0500 Message-Id: <20210122205024.470734-5-dmalcolm@redhat.com> In-Reply-To: <20210122205024.470734-1-dmalcolm@redhat.com> References: <20210122205024.470734-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Malcolm via Gcc-patches From: David Malcolm Reply-To: David Malcolm Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" --- htdocs/gcc-11/changes.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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. +
          • +
          From patchwork Fri Jan 22 20:50:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1430560 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=gGEzfzUO; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DMryQ4XRXz9sCq for ; Sat, 23 Jan 2021 07:51:10 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ED3E13AA7C9A; Fri, 22 Jan 2021 20:50:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED3E13AA7C9A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1611348655; bh=yi047LdhdJ5t4zmxpchtvfnyCJJxrAmHxM9KUz3BbSU=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=gGEzfzUOiM04mrg8GcK4lf6qsbUNE9npmOD+T1tCYoqUjgF/nBD4eIYhi+p1FloBy pJP+n7bN4ifJCbulVwclf6uW0WQ8s4lCqoyxYmXywZjugVboErGGKIfh3VORtg3rgC O4z3r7fotq4+SIUh3f3LyQJJ6Ulj1YqwwjsIqPxk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id DC7F039DC4A7 for ; Fri, 22 Jan 2021 20:50:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DC7F039DC4A7 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-526-51H39YgiNq-BJPINPou7Qw-1; Fri, 22 Jan 2021 15:50:46 -0500 X-MC-Unique: 51H39YgiNq-BJPINPou7Qw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CF26E801FAE for ; Fri, 22 Jan 2021 20:50:45 +0000 (UTC) Received: from t470.redhat.com (ovpn-112-159.phx2.redhat.com [10.3.112.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7118E50EDE; Fri, 22 Jan 2021 20:50:45 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH 5/6] gcc 11: add within where appropriate Date: Fri, 22 Jan 2021 15:50:24 -0500 Message-Id: <20210122205024.470734-6-dmalcolm@redhat.com> In-Reply-To: <20210122205024.470734-1-dmalcolm@redhat.com> References: <20210122205024.470734-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Malcolm via Gcc-patches From: David Malcolm Reply-To: David Malcolm Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" --- htdocs/gcc-11/changes.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) 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.
      • From patchwork Fri Jan 22 20:50:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1430559 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=wwsoQgFY; dkim-atps=neutral Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DMryL4jqpz9sCq for ; Sat, 23 Jan 2021 07:51:06 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 456D339960F1; Fri, 22 Jan 2021 20:50:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 456D339960F1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1611348654; bh=bE7JHEXJE7HKw3RONN8bpDy5RJeIfRMTv4bCXbM3HQs=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=wwsoQgFY0VUjnQX6Y1alhNiMNppo3TqNYwfYxDCLdSAHecjbb8DVe5uw5a5I+RS7N dCXVSdimZSGMNoYGIzvjMkj8j4cJCxcMCw6mPrBTfiFq2rGpPeiv4od9HeQvdOyhZR olPi6wHi3Ofm5Jws49WefQBOZrWgFGjx565Q9gzY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 528A939DC497 for ; Fri, 22 Jan 2021 20:50:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 528A939DC497 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-466-btKenfXGOFSHfXis98B_jQ-1; Fri, 22 Jan 2021 15:50:47 -0500 X-MC-Unique: btKenfXGOFSHfXis98B_jQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5636759 for ; Fri, 22 Jan 2021 20:50:46 +0000 (UTC) Received: from t470.redhat.com (ovpn-112-159.phx2.redhat.com [10.3.112.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id F420C9CA0; Fri, 22 Jan 2021 20:50:45 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH 6/6] gcc 11: add documentation link for -Wsizeof-array-div Date: Fri, 22 Jan 2021 15:50:25 -0500 Message-Id: <20210122205024.470734-7-dmalcolm@redhat.com> In-Reply-To: <20210122205024.470734-1-dmalcolm@redhat.com> References: <20210122205024.470734-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Malcolm via Gcc-patches From: David Malcolm Reply-To: David Malcolm Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" --- htdocs/gcc-11/changes.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.