Support DEFPARAMENUM in params.def
authorTom de Vries <tom@codesourcery.com>
Tue, 13 Oct 2015 10:08:50 +0000 (10:08 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 13 Oct 2015 10:08:50 +0000 (10:08 +0000)
commitd78182cc0ce05104e2f1cd40c97de974f075479f
tree89563bd3c31401b7aa9c038829d9746e20a87a34
parent7fd103efccee2a5706df7ffafae9315995edd841
Support DEFPARAMENUM in params.def

2015-10-13  Tom de Vries  <tom@codesourcery.com>

* Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
* params-enum.h: New file.
* opts.c (handle_param): Handle case that param arg is a string.
* params-list.h: Handle DEFPARAMENUM5 in params.def.
* params.c (find_param): New function, factored out of ...
(set_param_value): ... here.
(param_string_value_p): New function.
* params.h (struct param_info): Add value_names field.
(find_param, param_string_value_p): Declare.

From-SVN: r228755
gcc/ChangeLog
gcc/Makefile.in
gcc/opts.c
gcc/params-enum.h [new file with mode: 0644]
gcc/params-list.h
gcc/params.c
gcc/params.h