Re: Fix PRs 50644,50741, segfaults in set_is_used

2011-11-16 Thread Richard Guenther
On Wed, Nov 16, 2011 at 6:02 PM, Michael Matz wrote: > Hi, > > this patch fixes both problems by using the same condition as > add_referenced_var uses to guard walking into initializers.  I've > considered some other solutions but the real nice one (merging local_decls > and referenced_vars, and n

Fix PRs 50644,50741, segfaults in set_is_used

2011-11-16 Thread Michael Matz
Hi, this patch fixes both problems by using the same condition as add_referenced_var uses to guard walking into initializers. I've considered some other solutions but the real nice one (merging local_decls and referenced_vars, and not using annotations for the used flag) doesn't seem appropri