From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22202 invoked by alias); 20 Aug 2010 23:29:27 -0000 Received: (qmail 22194 invoked by uid 22791); 20 Aug 2010 23:29:26 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Aug 2010 23:29:22 +0000 Received: (qmail 31341 invoked from network); 20 Aug 2010 23:29:20 -0000 Received: from unknown (HELO ?192.168.0.105?) (mitchell@127.0.0.2) by mail.codesourcery.com with ESMTPA; 20 Aug 2010 23:29:20 -0000 Message-ID: <4C6F0FE0.1070904@codesourcery.com> Date: Sat, 21 Aug 2010 01:05:00 -0000 From: Mark Mitchell User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Bernd Schmidt CC: Ian Lance Taylor , "H.J. Lu" , GCC Development , "Kreitzer\, David L" , "Girkar\, Milind" Subject: Re: Add uninitialized attribute? References: <4C6EEC3C.3000202@codesourcery.com> In-Reply-To: <4C6EEC3C.3000202@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2010-08/txt/msg00306.txt.bz2 Bernd Schmidt wrote: >>> int x __attribute__ ((uninitialized)); >>> >>> to tell compiler that it is OK for "x" to be uninitialized? > > Better to call it "initialized", analogous to attribute used/unused. I agree. >> I think the general idea is reasonable. I also think it might be worth >> spending a few minutes thinking about whether we can implement some more >> general diagnostic suppression mechanism. E.g., >> int x __attribute__ ((ignore ("-Wuninitialized"))); > > Or this. FWIW, I think that's overly ambitious. -- Mark Mitchell CodeSourcery mark@codesourcery.com (650) 331-3385 x713