From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28079 invoked by alias); 22 Dec 2005 14:22:27 -0000 Received: (qmail 28063 invoked by uid 22791); 22 Dec 2005 14:22:27 -0000 X-Spam-Check-By: sourceware.org Received: from mail-out3.fuse.net (HELO smtp3.fuse.net) (216.68.8.176) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 Dec 2005 14:22:26 +0000 Received: from gx6.fuse.net ([216.68.190.56]) by smtp3.fuse.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20051222142223.HYAV1115.smtp3.fuse.net@gx6.fuse.net>; Thu, 22 Dec 2005 09:22:23 -0500 Received: from dellpi.pinski.fam ([216.68.190.56]) by gx6.fuse.net (InterMail vG.1.02.00.02 201-2136-104-102-20041210) with ESMTP id <20051222142223.NMIK24344.gx6.fuse.net@dellpi.pinski.fam>; Thu, 22 Dec 2005 09:22:23 -0500 Received: from [10.0.0.80] (zhivago.i.pinski.fam [10.0.0.80]) by dellpi.pinski.fam (8.12.2/8.12.1) with ESMTP id jBMEMJFY017088; Thu, 22 Dec 2005 09:22:19 -0500 (EST) In-Reply-To: <20051222103822.5911.qmail@sourceware.org> References: <20051222103822.5911.qmail@sourceware.org> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: gcc-bugs@gcc.gnu.org From: Andrew Pinski Subject: Re: [Bug tree-optimization/5035] Incorrectly produces '`' might be used uninitialized in this function' Date: Thu, 22 Dec 2005 14:22:00 -0000 To: gcc-bugzilla@gcc.gnu.org X-IsSubscribed: yes Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2005-12/txt/msg02341.txt.bz2 List-Id: On Dec 22, 2005, at 5:38 AM, trick at icculus dot org wrote: > > > ------- Comment #10 from trick at icculus dot org 2005-12-22 10:38 > ------- > Maybe you could add a new variable attribute so that these warnings > could at > least be avoided in cases where the coder knows the code is correct ? > Something like: > > int x __attribute__((__notuninited__)); int x = x; Will make the warning go away, plus this is documented in the options section under -Winit-self. -- Pinski