diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-01 16:46:25 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-01 16:46:25 +0000 |
commit | 1d8a53f4d7d045d285e9ef482f6b18caea9005f4 (patch) | |
tree | 68b4dba3e71746f5a25ddc90900e8d44323f79f8 /gcc/params.h | |
parent | dd1d31096c2b5057c5736cbbf6ce85ff26f69098 (diff) | |
download | gcc-1d8a53f4d7d045d285e9ef482f6b18caea9005f4.tar.gz |
PR middle-end/18667
* params.c (set_param_value): Add range check.
* params.def: Add min and max values. Reformat long strings.
* params.h (struct param_info): Add min and max fields.
(enum compiler_param): Adjust DEFPARAM.
* toplev.c (lang_independent_params): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91567 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/params.h')
-rw-r--r-- | gcc/params.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/params.h b/gcc/params.h index 0a010b23872..d1e583245ab 100644 --- a/gcc/params.h +++ b/gcc/params.h @@ -48,6 +48,13 @@ typedef struct param_info const char *const option; /* The associated value. */ int value; + + /* Minimum acceptable value. */ + int min_value; + + /* Maxiumum acceptable value, if greater than minimum */ + int max_value; + /* A short description of the option. */ const char *const help; } param_info; @@ -70,7 +77,7 @@ extern void set_param_value (const char *name, int value); typedef enum compiler_param { -#define DEFPARAM(enumerator, option, msgid, default) \ +#define DEFPARAM(enumerator, option, msgid, default, min, max) \ enumerator, #include "params.def" #undef DEFPARAM |