re PR target/37808 (Revision 141067 breaks Linux/x86)

2008-10-12  Kenneth Zadeck <zadeck@naturalbridge.com>

	PR middle-end/37808
	* df-scan.c (df_ref_change_reg_with_loc_1): Added test to make
	sure that ref has valid bb.

From-SVN: r141078
This commit is contained in:
Kenneth Zadeck 2008-10-12 21:16:57 +00:00 committed by Kenneth Zadeck
parent f6129d66bc
commit 5288f9994e
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-10-12 Kenneth Zadeck <zadeck@naturalbridge.com>
PR middle-end/37808
* df-scan.c (df_ref_change_reg_with_loc_1): Added test to make
sure that ref has valid bb.
2008-10-12 Richard Henderson <rth@redhat.com>
PR middle-end/37447

View File

@ -1980,7 +1980,8 @@ df_ref_change_reg_with_loc_1 (struct df_reg_info *old_df,
DF_REF_PREV_REG (new_df->reg_chain) = the_ref;
new_df->reg_chain = the_ref;
new_df->n_refs++;
df_set_bb_dirty (DF_REF_BB (the_ref));
if (DF_REF_BB (the_ref))
df_set_bb_dirty (DF_REF_BB (the_ref));
/* Need to sort the record again that the ref was in because
the regno is a sorting key. First, find the right