]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/df.h
df: make df_problem instances "const"
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Apr 2016 18:18:45 +0000 (18:18 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Apr 2016 18:18:45 +0000 (18:18 +0000)
commitd8000c94ceb994c7d728bef02e5ddebcc0824f85
treec849235ee7d2d12dc908fe717f2c035f003c47b7
parentf331b9f301e5b646c6fe2cab27bd4bc5b10d2dce
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235524 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/df-core.c
gcc/df-problems.c
gcc/df-scan.c
gcc/df.h