[Patch,Fortran] Fix tree-walking issue

Tobias Burnus burnus@net-b.de
Wed Nov 2 07:34:00 GMT 2011


Dear all,

attached is an updated version of Patch 2. The change is that I removed 
the global variable for fill_st_vector and updated the comment for 
do_traverse_symtree to make assumptions clearer.

This version of the patch was build and regtested (gfortran + libgomp).
OK?


Dear Tobias S.,

Tobias Schlüter wrote:
> I don't remember all this very clearly, but I think that the 
> gfc_symbol::tlink field is intended for something like this

I think that's a rather different issue: It relates to undoing a symbol, 
which I do not want to do. Additionally, a tlink symbol is already added 
to a symtree (which is hence rebalanced). One possibility is to delay 
the inclusion of symbols into the symtree - and do only so after the 
traversal - but that might cause issues if one later searches in called 
function for that symtree. Thus, I think my current patch should be 
sufficiently simple, fast and solid.

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree-walk_PATCH_2a.diff
Type: text/x-patch
Size: 3386 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111102/729604b0/attachment.bin>


More information about the Fortran mailing list