diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-04-27 18:18:45 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-04-27 18:18:45 +0000 |
commit | fdd5680ca7581542da868c0d219e36e76d806082 (patch) | |
tree | c849235ee7d2d12dc908fe717f2c035f003c47b7 /gcc/df.h | |
parent | 98544adc26c0f956ecf63495749f029e3943bc31 (diff) | |
download | gcc-fdd5680ca7581542da868c0d219e36e76d806082.zip gcc-fdd5680ca7581542da868c0d219e36e76d806082.tar.gz gcc-fdd5680ca7581542da868c0d219e36e76d806082.tar.bz2 |
df: make df_problem instances "const"
The various struct df_problem instances are constant data; mark them
as such.
gcc/ChangeLog:
* df-core.c (df_add_problem): Make the problem param be const.
(df_remove_problem): Make local "problem" be const.
* df-problems.c (problem_RD): Make const.
(problem_LR): Likewise.
(problem_LIVE): Likewise.
(problem_MIR): Likewise.
(problem_CHAIN): Likewise.
(problem_WORD_LR): Likewise.
(problem_NOTE): Likewise.
(problem_MD): Likewise.
* df-scan.c (problem_SCAN): Likewise.
* df.h (struct df_problem): Make field "dependent_problem" be
const.
(struct dataflow): Likewise for field "problem".
(df_add_problem): Make param const.
From-SVN: r235524
Diffstat (limited to 'gcc/df.h')
-rw-r--r-- | gcc/df.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -275,7 +275,7 @@ struct df_problem { df_dump_insn_problem_function dump_insn_bottom_fun; df_verify_solution_start verify_start_fun; df_verify_solution_end verify_end_fun; - struct df_problem *dependent_problem; + const struct df_problem *dependent_problem; unsigned int block_info_elt_size; /* The timevar id associated with this pass. */ @@ -290,7 +290,7 @@ struct df_problem { /* The specific instance of the problem to solve. */ struct dataflow { - struct df_problem *problem; /* The problem to be solved. */ + const struct df_problem *problem; /* The problem to be solved. */ /* Array indexed by bb->index, that contains basic block problem and solution specific information. */ @@ -948,7 +948,7 @@ extern struct df_d *df; /* Functions defined in df-core.c. */ -extern void df_add_problem (struct df_problem *); +extern void df_add_problem (const struct df_problem *); extern int df_set_flags (int); extern int df_clear_flags (int); extern void df_set_blocks (bitmap); |