summaryrefslogtreecommitdiff
path: root/gcc/df-scan.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-04-27 18:18:45 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-04-27 18:18:45 +0000
commitfdd5680ca7581542da868c0d219e36e76d806082 (patch)
treec849235ee7d2d12dc908fe717f2c035f003c47b7 /gcc/df-scan.c
parent98544adc26c0f956ecf63495749f029e3943bc31 (diff)
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-scan.c')
-rw-r--r--gcc/df-scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/df-scan.c b/gcc/df-scan.c
index 98de8440542..e6d01d60082 100644
--- a/gcc/df-scan.c
+++ b/gcc/df-scan.c
@@ -396,7 +396,7 @@ df_scan_start_block (basic_block bb, FILE *file)
#endif
}
-static struct df_problem problem_SCAN =
+static const struct df_problem problem_SCAN =
{
DF_SCAN, /* Problem id. */
DF_NONE, /* Direction. */