This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: missed uninitialised variable warning
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Michael Matz <matz at suse dot de>, Gabriel Dos Reis <gdr at integrable-solutions dot net>, Alexandre Oliva <aoliva at redhat dot com>, Andrew Morton <akpm at osdl dot org>, <gcc at gcc dot gnu dot org>
- Date: Mon, 4 Aug 2003 11:15:48 -0400
- Subject: Re: missed uninitialised variable warning
On Monday, Aug 4, 2003, at 09:56 US/Eastern, Andrew Pinski wrote:
Here is a patch which should warn about more complicated expressions.
If you want to limit gcc not warn about int i=i;, then add a condition
in contains_exp
for the case x==t and change the name of contains_exp.
This patch does not work with anything other than c and C++ because
walk_tree depends on the c front-end which
needs to change (and is changed already on the tree-ssa branch).
Thanks,
Andrew Pinsi