This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] IPA ICF: add no_icf attribute for a function


On 01/16/15 08:04, Martin LiÅka wrote:
Hello.

This patch adds support for __attribute__((no_icf)) that prevents a
function
being merged with a different one.

Tested on x86_64-linux-pc.

Ready for trunk?
Thanks,
Martin

0001-IPA-ICF-add-no_icf-attribute.patch


 From 234fc8018f9810e2adf6d975d6d0051631ef8c02 Mon Sep 17 00:00:00 2001
From: mliska<mliska@suse.cz>
Date: Fri, 16 Jan 2015 14:35:23 +0100
Subject: [PATCH] IPA ICF: add no_icf attribute.

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.
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]