diff options
author | zadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-21 16:24:59 +0000 |
---|---|---|
committer | zadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-21 16:24:59 +0000 |
commit | f5f2a0d1ed00430209e153d21878d3bf5e92d0f7 (patch) | |
tree | 13d8769b46b55aea4710e6ce9c5920176d2586c3 /gcc/df-problems.c | |
parent | 079589a4e7165bbbea63a5a9d1cb43d9e12807cc (diff) | |
download | gcc-f5f2a0d1ed00430209e153d21878d3bf5e92d0f7.tar.gz |
2007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>
* df-problems.c (df_note_bb_compute): Made computation of live
info consistent with df_lr.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125924 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df-problems.c')
-rw-r--r-- | gcc/df-problems.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gcc/df-problems.c b/gcc/df-problems.c index 101b46f58e3..6097908e654 100644 --- a/gcc/df-problems.c +++ b/gcc/df-problems.c @@ -46,6 +46,9 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA #include "dce.h" #include "vecprim.h" +/* Note that turning REG_DEAD_DEBUGGING on will cause + gcc.c-torture/unsorted/dump-noaddr.c to fail because it prints + addresses in the dumps. */ #if 0 #define REG_DEAD_DEBUGGING #endif @@ -3960,8 +3963,8 @@ df_note_bb_compute (unsigned int bb_index, df_print_regset (dump_file, live); } #endif - /* We only care about real sets for calls. Clobbers only - may clobbers cannot be depended on. */ + /* We only care about real sets for calls. Clobbers cannot + be depended on to really die. */ mws_rec = DF_INSN_UID_MWS (uid); while (*mws_rec) { @@ -3985,6 +3988,12 @@ df_note_bb_compute (unsigned int bb_index, = df_create_unused_note (insn, old_unused_notes, def, live, do_not_gen, artificial_uses); + + /* However a may or must clobber still needs to kill the + reg so that REG_DEAD notes are later placed + appropriately. */ + else + bitmap_clear_bit (live, DF_REF_REGNO (def)); } } else |