summaryrefslogtreecommitdiff
path: root/gcc/params-list.h
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-10-13 10:08:50 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-10-13 10:08:50 +0000
commitd78182cc0ce05104e2f1cd40c97de974f075479f (patch)
tree89563bd3c31401b7aa9c038829d9746e20a87a34 /gcc/params-list.h
parent7fd103efccee2a5706df7ffafae9315995edd841 (diff)
downloadgcc-d78182cc0ce05104e2f1cd40c97de974f075479f.tar.gz
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
Diffstat (limited to 'gcc/params-list.h')
-rw-r--r--gcc/params-list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/params-list.h b/gcc/params-list.h
index ee33ef52b36..fa768563384 100644
--- a/gcc/params-list.h
+++ b/gcc/params-list.h
@@ -19,5 +19,8 @@ along with GCC; see the file COPYING3. If not see
#define DEFPARAM(enumerator, option, nocmsgid, default, min, max) \
enumerator,
+#define DEFPARAMENUM5(enumerator, option, nocmsgid, default, \
+ v0, v1, v2, v3, v4) enumerator,
#include "params.def"
#undef DEFPARAM
+#undef DEFPARAMENUM5