> >gcc/c-family/ChangeLog: > > > >2015-01-16 Martin Liska<mli...@suse.cz> > > > > * c-common.c (handle_noicf_attribute): New function. > > > >gcc/ChangeLog: > > > >2015-01-16 Martin Liska<mli...@suse.cz> > > > > * doc/extend.texi (no_icf): Add new attribute description. > > * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases > > where the pass attempts to merge a function with no_icf attribute. > > > >gcc/testsuite/ChangeLog: > > > >2015-01-16 Martin Liska<mli...@suse.cz> > > > > * gcc.dg/ipa/ipa-icf-33.c: New test. > OK. I think you want to check at same places opt_for_fn (fndecl, flag_icf) too to support optimization attribute and LTO merging.
Honza > jeff