ipa-icf.c (sem_variable::equals): Improve debug output; get variable constructor.
authorMartin Liska <mliska@suse.cz>
Mon, 2 Mar 2015 07:51:28 +0000 (08:51 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 2 Mar 2015 07:51:28 +0000 (07:51 +0000)
commitc4c0f336bc3bd0761ccac74d297dd45d45e299fe
treee397c5c2d53aa0aefa1972f3451f30c5fdb6453b
parent34a108c813ff0644384f4f8796797cdb30811644
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
gcc/ChangeLog
gcc/ipa-icf.c
gcc/ipa-icf.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-icf-35.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/ipa-icf-36.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/ipa-icf-37.c [new file with mode: 0644]