Reset global state ipa-icf.c:optimizer
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 22 Oct 2014 15:10:02 +0000 (15:10 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 22 Oct 2014 15:10:02 +0000 (15:10 +0000)
gcc/
* ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.

From-SVN: r216561

gcc/ChangeLog
gcc/ipa-icf.c

index be45d7ecd2b6246e6966e9a35398332a211c98cc..1a460237294a10797d280180eed8d0cb4a5b521c 100644 (file)
@@ -1,3 +1,7 @@
+2014-10-22  David Malcolm  <dmalcolm@redhat.com>
+
+       * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
+
 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
 
        * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
index 0e6bd9a6073afb9c84318ffbb0ca1f2fbc7a2bff..d1238a4ce8b5a31417d1fbb5bd546d4845c986bc 100644 (file)
@@ -2320,6 +2320,7 @@ ipa_icf_driver (void)
   optimizer->unregister_hooks ();
 
   delete optimizer;
+  optimizer = NULL;
 
   return 0;
 }