------- Comment #8 from baldrick at gcc dot gnu dot org 2008-01-10 18:25 ------- > Your solution seems to be somewhat complex though. Can't we get away with > an iterative propagation algorithm for the DECL_NO_STATIC_CHAIN flag?
Yes, but it is less efficient: in the worst case the number of node visits goes up by a factor of the nesting depth. Since this depth is sure to be fairly small (typically 2 or 3) this probably is of no consequence. I am now working on a revised patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30927