From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79851 invoked by alias); 26 Jun 2017 14:54:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 79797 invoked by uid 89); 26 Jun 2017 14:54:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=cvs, family X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Jun 2017 14:54:37 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 10F2E85542 for ; Mon, 26 Jun 2017 14:54:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 10F2E85542 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=polacek@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 10F2E85542 Received: from redhat.com (ovpn-204-53.brq.redhat.com [10.40.204.53]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 75D4178906 for ; Mon, 26 Jun 2017 14:54:35 +0000 (UTC) Date: Mon, 26 Jun 2017 14:54:00 -0000 From: Marek Polacek To: GCC Patches Subject: [wwwdocs] Add -Wmultistatement-macros Message-ID: <20170626145432.GF4341@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.8.0 (2017-02-23) X-SW-Source: 2017-06/txt/msg01930.txt.bz2 I've committed the following to reflect the recent addition. Index: changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/changes.html,v retrieving revision 1.5 diff -u -r1.5 changes.html --- changes.html 20 Jun 2017 10:19:11 -0000 1.5 +++ changes.html 26 Jun 2017 14:53:28 -0000 @@ -50,6 +50,14 @@

C family

    +
  • New command-line options have been added for the C and C++ compilers: +
      +
    • -Wmultistatement-macros warns about unsafe macros + expanding to multiple statements used as a body of a clause such + as if, else, while, + switch, or for.
    • +
    +
  • -fno-strict-overflow is now mapped to -fwrapv and signed integer overflow is now undefined by default at all optimization levels. Using Marek