diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-02-28 15:18:04 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-03-01 06:18:31 -0800 |
commit | 88f91d8ccc8fec3a811975e3e4765b9a94d3f764 (patch) | |
tree | 126b1c70f427fc30805e2cda4099b0cf5575da71 /gcc | |
parent | 9ef2bfdd451a70f16b0348271aaca656b6ab1570 (diff) | |
download | gcc-88f91d8ccc8fec3a811975e3e4765b9a94d3f764.zip gcc-88f91d8ccc8fec3a811975e3e4765b9a94d3f764.tar.gz gcc-88f91d8ccc8fec3a811975e3e4765b9a94d3f764.tar.bz2 |
Clear currently_expanding_gimple_stmt properly
commit a5883ba0de68efad36db145e75c86394d8bd44ea
Author: Michael Matz <matz@gcc.gnu.org>
Date: Tue Nov 24 15:37:32 2009 +0000
introduced currently_expanding_gimple_stmt, which was set and cleared in
expand_gimple_basic_block when expanding gimple statement to RTL. But it
isn't cleared when expand_gimple_basic_block returns inside the loop.
PR middle-end/104721
* cfgexpand.cc (expand_gimple_basic_block): Clear
currently_expanding_gimple_stmt when returning inside the loop.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cfgexpand.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/cfgexpand.cc b/gcc/cfgexpand.cc index d51af2e..87536ec 100644 --- a/gcc/cfgexpand.cc +++ b/gcc/cfgexpand.cc @@ -5927,7 +5927,10 @@ expand_gimple_basic_block (basic_block bb, bool disable_tail_calls) { new_bb = expand_gimple_cond (bb, as_a <gcond *> (stmt)); if (new_bb) - return new_bb; + { + currently_expanding_gimple_stmt = NULL; + return new_bb; + } } else if (is_gimple_debug (stmt)) { @@ -6049,7 +6052,10 @@ expand_gimple_basic_block (basic_block bb, bool disable_tail_calls) if (can_fallthru) bb = new_bb; else - return new_bb; + { + currently_expanding_gimple_stmt = NULL; + return new_bb; + } } } else |