diff options
author | Kenneth Zadeck <zadeck@naturalbridge.com> | 2008-10-12 21:16:57 +0000 |
---|---|---|
committer | Kenneth Zadeck <zadeck@gcc.gnu.org> | 2008-10-12 21:16:57 +0000 |
commit | 5288f9994e6c40009edfaed50bc79b0cf8fb42af (patch) | |
tree | c2d2d3056e752d1883bb6a97c279c2061597e3e5 /gcc/df-scan.c | |
parent | f6129d66bce280604f349fe2144ae5649964a476 (diff) | |
download | gcc-5288f9994e6c40009edfaed50bc79b0cf8fb42af.zip gcc-5288f9994e6c40009edfaed50bc79b0cf8fb42af.tar.gz gcc-5288f9994e6c40009edfaed50bc79b0cf8fb42af.tar.bz2 |
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
Diffstat (limited to 'gcc/df-scan.c')
-rw-r--r-- | gcc/df-scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/df-scan.c b/gcc/df-scan.c index ec0d12e..761ba79 100644 --- a/gcc/df-scan.c +++ b/gcc/df-scan.c @@ -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 |