From 9612a39a41f7d66a303c0b6fa4e76aa739d12b9a Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 22 Oct 2014 15:10:02 +0000 Subject: [PATCH] Reset global state ipa-icf.c:optimizer gcc/ * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done. From-SVN: r216561 --- gcc/ChangeLog | 4 ++++ gcc/ipa-icf.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be45d7ecd2b..1a460237294 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-10-22 David Malcolm + + * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done. + 2014-10-22 Andrew MacLeod * cfgbuild.h: New. Add prototypes for cfgbuild.c. diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 0e6bd9a6073..d1238a4ce8b 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -2320,6 +2320,7 @@ ipa_icf_driver (void) optimizer->unregister_hooks (); delete optimizer; + optimizer = NULL; return 0; } -- 2.30.2