This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with the special live analyzer in global alloc
- From: Steven Bosscher <stevenb at suse dot de>
- To: gcc at gcc dot gnu dot org
- Cc: Bernd Schmidt <bernds_cb1 at t-online dot de>, Daniel Berlin <dberlin at dberlin dot org>, Andreas Krebbel <krebbel1 at de dot ibm dot com>, James E Wilson <wilson at specifixinc dot com>
- Date: Tue, 23 Aug 2005 17:12:16 +0200
- Subject: Re: Problem with the special live analyzer in global alloc
- References: <20050816135150.GA3617@de.ibm.com> <1124809003.7123.14.camel@linux.site> <430B3B61.9010302@t-online.de>
On Tuesday 23 August 2005 17:06, Bernd Schmidt wrote:
> The idea is to put the initialization insns only on the paths where the
> register will be uninitialized.
int foo (int n)
{
int a;
while (--n)
a = n;
return a;
}
Not knowing n, how can you be sure whether "a" is uninitialized for
the "return" statement or not?
Gr.
Steven