From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26768 invoked by alias); 5 Apr 2012 14:00:38 -0000 Received: (qmail 26756 invoked by uid 22791); 5 Apr 2012 14:00:37 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-lpp01m010-f47.google.com (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Apr 2012 14:00:21 +0000 Received: by lagw12 with SMTP id w12so1752914lag.20 for ; Thu, 05 Apr 2012 07:00:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.131.66 with SMTP id ok2mr3219097lab.10.1333634419591; Thu, 05 Apr 2012 07:00:19 -0700 (PDT) Received: by 10.112.85.98 with HTTP; Thu, 5 Apr 2012 07:00:19 -0700 (PDT) In-Reply-To: <20120405101630.GA9348@adacore.com> References: <4F7D5EB4.2060903@redhat.com> <20120405100409.GA5596@adacore.com> <20120405101630.GA9348@adacore.com> Date: Thu, 05 Apr 2012 14:00:00 -0000 Message-ID: Subject: Re: RFC: -Wall by default From: Jonathan Wakely To: Arnaud Charlet Cc: Gabriel Dos Reis , Richard Guenther , Pedro Alves , gcc Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg00193.txt.bz2 On 5 April 2012 11:16, Arnaud Charlet wrote: > > OK, the above list looks reasonable to me at least as a starting point > that could be a bit refined (not sure -Wstrict-aliasing is so useful by > default for instance for legacy code), -Wstrict-aliasing is only active when -fstrict-aliasing is on, and if that's on the warning definitely should be, since it indicates code that may well misbehave, "legacy" or not.