------- Comment #28 from jakub at gcc dot gnu dot org 2010-02-15 22:37 ------- DECL_ATTRIBUTES (decl) = tree_cons (get_identifier ("used"), NULL, DECL_ATTRIBUTES (decl)); is also needed (no idea why ipa*.c/cgraphunit.c use lookup_attribute instead of testing DECL_PRESERVED_P, but they do).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43061