Skip to content
Snippets Groups Projects
Commit fdd5680c authored by David Malcolm's avatar David Malcolm Committed by David Malcolm
Browse files

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
parent 98544adc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment