diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-27 14:32:00 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-27 14:32:00 +0000 |
commit | 10392c0e90718af37fa62b58b01b5a1f8b1f4365 (patch) | |
tree | 7a3cc824ea25c5386da1ec23b8f25344db8d1416 /gcc/passes.c | |
parent | 0f09ed0090051b3098eb39d855d69dc8233a66ea (diff) | |
download | gcc-10392c0e90718af37fa62b58b01b5a1f8b1f4365.tar.gz |
2011-06-27 Richard Guenther <rguenther@suse.de>
PR tree-optimization/49394
* passes.c (execute_one_pass): Restore current_pass after
applying IPA transforms.
* g++.dg/torture/pr49394.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175532 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index a03aa3f48c0..fc9767e39ca 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -2030,6 +2030,8 @@ execute_one_pass (struct opt_pass *pass) do_per_function (apply_ipa_transforms, (void *)&applied); if (applied) cgraph_remove_unreachable_nodes (true, dump_file); + /* Restore current_pass. */ + current_pass = pass; } if (!quiet_flag && !cfun) |