aboutsummaryrefslogtreecommitdiff
path: root/gcc/errors.c
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2020-03-12 07:12:50 +0000
committerSegher Boessenkool <segher@kernel.crashing.org>2020-03-13 15:15:26 +0000
commit5c7e6d4bdf879b437b43037e10453275acabf521 (patch)
tree80d97047d47fe59121a20a2e7cc849cbbf06e05f /gcc/errors.c
parent80a13af724aedfb360893dcc16aa7cc12ca49799 (diff)
downloadgcc-5c7e6d4bdf879b437b43037e10453275acabf521.zip
gcc-5c7e6d4bdf879b437b43037e10453275acabf521.tar.gz
gcc-5c7e6d4bdf879b437b43037e10453275acabf521.tar.bz2
df: Don't abuse bb->aux (PR94148, PR94042)
The df dataflow solvers use the aux field in the basic_block struct, although that is reserved for any use by passes. And not only that, it is required that you set all such fields to NULL before calling the solvers, or you quietly get wrong results. This changes the solvers to use a local array for last_change_age instead, just like it already had a local array for last_visit_age. PR rtl-optimization/94148 PR rtl-optimization/94042 * df-core.c (BB_LAST_CHANGE_AGE): Delete. (df_worklist_propagate_forward): New parameter last_change_age, use that instead of bb->aux. (df_worklist_propagate_backward): Ditto. (df_worklist_dataflow_doublequeue): Use a local array last_change_age.
Diffstat (limited to 'gcc/errors.c')
0 files changed, 0 insertions, 0 deletions