[patch, fortran] Some cleanup / fixes in front-end statement walker
Thomas Koenig
tkoenig@netcologne.de
Sun Oct 16 20:19:00 GMT 2011
Hello world,
working on PR 50690, I noticed a few things which are
not quite right in front-end optimization statement
walking:
- BLOCKs were walked via their namespaces, not directly.
This caused out-of-order walking, which was confusing.
- current_ns was not marked static.
- ASSOCIATE lists were not walked.
This patch corrects these things. Regression-tested.
OK for trunk? (I will not be able to commit for a few
days due to business travel, unless somebody is _really_
fast :-)
Thomas
2011-10-16 Thomas Koenig <tkoenig@gcc.gnu.org>
* frontend-passes.c (current_ns): Make static.
(create_var): Note parent of newly created namespace.
(optimize_namespace): Don't wak sibling namespaces
if they are EXEC_BLOCK because this is handled...
(gfc_code_walker): ... here. Also walk ASSOCIATE lists.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: frontend-cleanup-1.diff
Type: text/x-patch
Size: 1830 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111016/5c432b71/attachment.bin>
More information about the Fortran
mailing list