diff options
author | Martin Liska <mliska@suse.cz> | 2015-03-02 08:51:28 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-03-02 07:51:28 +0000 |
commit | c4c0f336bc3bd0761ccac74d297dd45d45e299fe (patch) | |
tree | e397c5c2d53aa0aefa1972f3451f30c5fdb6453b /gcc/ipa-icf.h | |
parent | 34a108c813ff0644384f4f8796797cdb30811644 (diff) | |
download | gcc-c4c0f336bc3bd0761ccac74d297dd45d45e299fe.zip gcc-c4c0f336bc3bd0761ccac74d297dd45d45e299fe.tar.gz gcc-c4c0f336bc3bd0761ccac74d297dd45d45e299fe.tar.bz2 |
ipa-icf.c (sem_variable::equals): Improve debug output; get variable constructor.
2015-02-28 Martin Liska <mliska@suse.cz>
Jan Hubicka <hubicka@ucw.cz>
* ipa-icf.c (sem_variable::equals): Improve debug output;
get variable constructor.
(sem_variable::parse): Do not filter out too early; give up on
volatile and register vars.
(sem_item_optimizer::filter_removed_items): Filter out nonreadonly
variables.
* ipa-icf.h (sem_variable::init): Do not set ctor.
(sem_variable::ctor): Remove.
gcc/testsuite/ChangeLog:
2015-02-28 Martin Liska <mliska@suse.cz>
Jan Hubicka <hubicka@ucw.cz>
* gcc.dg/ipa/ipa-icf-35.c: New test.
* gcc.dg/ipa/ipa-icf-36.c: New test.
* gcc.dg/ipa/ipa-icf-37.c: New test.
Co-Authored-By: Jan Hubicka <hubicka@ucw.cz>
From-SVN: r221099
Diffstat (limited to 'gcc/ipa-icf.h')
-rw-r--r-- | gcc/ipa-icf.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h index b4862b7..e3582db 100644 --- a/gcc/ipa-icf.h +++ b/gcc/ipa-icf.h @@ -393,7 +393,6 @@ public: inline virtual void init (void) { decl = get_node ()->decl; - ctor = ctor_for_folding (decl); } virtual hashval_t get_hash (void); @@ -415,9 +414,6 @@ public: /* Parser function that visits a varpool NODE. */ static sem_variable *parse (varpool_node *node, bitmap_obstack *stack); - /* Variable constructor. */ - tree ctor; - private: /* Iterates though a constructor and identifies tree references we are interested in semantic function equality. */ @@ -428,7 +424,6 @@ private: /* Compare that symbol sections are either NULL or have same name. */ bool compare_sections (sem_variable *alias); - }; // class sem_variable class sem_item_optimizer; |