------- Comment #46 from amylaar at gcc dot gnu dot org 2010-07-08 17:21 ------- (In reply to comment #45) > Using TREE_USED isn't really applicable here (we do never re-set it > at least). So an option would be to unconditionally preserve all > !DECL_INGNORED_P labels in BLOCKs.
Which is what my provisional patch was doing, although it'd need better commenting and deletion of dead tests / code. > Or play fancy with a bitmap > or a pointer-map. Could we use a different bit that is currently unused for LABEL_DECLs? (With a suitable accessor macro, of course.) The name of base.public_flag sounds about right, but might be a bit dangerous considering the unguarded TREE_PUBLIC accessor and possible mix-ups when code is meant to test TREE_PUBLIC of declarations. OTOH it seems that we could safely snarf base.nothrow_flag for LABEL_DECLs. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44832