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

Convert DF_SCAN etc from #define to an enum

Whilst debugging an issue in df, I noticed that there are
some #define constants that could be an enum (thus making them known
to gdb).

Convert them to a new enum, and update the "id" field of
struct df_problem.

gcc/ChangeLog:
	* df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
	DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
	#define to...
	(enum df_problem_id): ...this new enum.
	(struct df_problem): Convert field "id" from "int" to
	enum df_problem_id.

From-SVN: r235522
parent 1e55d29a
No related branches found
No related tags found
No related merge requests found
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