This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] IPA ICF: add no_icf attribute for a function
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Jeff Law <law at redhat dot com>
- Cc: Martin Liška <mliska at suse dot cz>, "gcc-patch >> GCC Patches" <gcc-patches at gcc dot gnu dot org>, "hubicka@ >> Jan Hubicka" <hubicka at ucw dot cz>
- Date: Fri, 16 Jan 2015 17:50:56 +0100
- Subject: Re: [PATCH] IPA ICF: add no_icf attribute for a function
- Authentication-results: sourceware.org; auth=none
- References: <54B9287B dot 7060705 at suse dot cz> <54B93C98 dot 9050208 at redhat dot com>
> >gcc/c-family/ChangeLog:
> >
> >2015-01-16 Martin Liska<mliska@suse.cz>
> >
> > * c-common.c (handle_noicf_attribute): New function.
> >
> >gcc/ChangeLog:
> >
> >2015-01-16 Martin Liska<mliska@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<mliska@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