Commit 2080bd29 by Jakub Jelinek Committed by Jakub Jelinek

re PR bootstrap/43596 (Failed to boostrap)

	PR bootstrap/43596
	* cselib.c (cselib_process_insn): Clear cselib_current_insn
	even before returning from label, setjmp call or volatile asm
	handling.

From-SVN: r157869
parent 33283dad
2010-03-31 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/43596
* cselib.c (cselib_process_insn): Clear cselib_current_insn
even before returning from label, setjmp call or volatile asm
handling.
2010-03-31 Richard Guenther <rguenther@suse.de> 2010-03-31 Richard Guenther <rguenther@suse.de>
PR middle-end/43600 PR middle-end/43600
......
...@@ -2155,12 +2155,13 @@ cselib_process_insn (rtx insn) ...@@ -2155,12 +2155,13 @@ cselib_process_insn (rtx insn)
&& MEM_VOLATILE_P (PATTERN (insn)))) && MEM_VOLATILE_P (PATTERN (insn))))
{ {
cselib_reset_table (next_uid); cselib_reset_table (next_uid);
cselib_current_insn = NULL_RTX;
return; return;
} }
if (! INSN_P (insn)) if (! INSN_P (insn))
{ {
cselib_current_insn = 0; cselib_current_insn = NULL_RTX;
return; return;
} }
...@@ -2202,7 +2203,7 @@ cselib_process_insn (rtx insn) ...@@ -2202,7 +2203,7 @@ cselib_process_insn (rtx insn)
if (GET_CODE (XEXP (x, 0)) == CLOBBER) if (GET_CODE (XEXP (x, 0)) == CLOBBER)
cselib_invalidate_rtx (XEXP (XEXP (x, 0), 0)); cselib_invalidate_rtx (XEXP (XEXP (x, 0), 0));
cselib_current_insn = 0; cselib_current_insn = NULL_RTX;
if (n_useless_values > MAX_USELESS_VALUES if (n_useless_values > MAX_USELESS_VALUES
/* remove_useless_values is linear in the hash table size. Avoid /* remove_useless_values is linear in the hash table size. Avoid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment