dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] [bug #7485] Non-initialized variable in for-loop s


From: Deryk Robosson
Subject: Re: [Pnet-developers] [bug #7485] Non-initialized variable in for-loop shall not be compiled by cscc
Date: Sun, 05 Jun 2005 20:18:39 +0800
User-agent: Opera M2/8.0 (Linux, build 1095)

On Sun, 05 Jun 2005 17:09:10 +0800, Rhys Weatherley <address@hidden> wrote:

On Sunday 05 June 2005 06:25 pm, Deryk Robosson wrote:

Rhys, can you offer any ideas or suggestions on this?

Every statement will need to have a list of variables used and set associated
with it, with dynamic flow analysis used to track the usage.  A flag is
insufficient. See the Dragon Book for the gory details. It ain't pretty, especially when statements like break, continue, and goto are encountered.

It would perhaps be possible to add a "check usage" operation in treecc that collects up this list information for each node type. It would take a list of variables in, for those that have already been set, and produce a list of
variables that are set afterwards.  Set merging will need to be done
everywhere control flow might come in from other points.

mmm sounds like something that is really quite above my head. I'm almost sorry I looked at it now. What is it they say about curiosity and the cat? lol Thanks for the reply Rhys, much apprecitated input.

Deryk


reply via email to

[Prev in Thread] Current Thread [Next in Thread]