diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-12-01 16:46:25 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-12-01 16:46:25 +0000 |
commit | e06c0febd9372024c10fd6fab64bb212e2975106 (patch) | |
tree | 68b4dba3e71746f5a25ddc90900e8d44323f79f8 /gcc/params.h | |
parent | 07c65e005e3c402d07297b9ce4df2e5ef5f433e2 (diff) | |
download | gcc-e06c0febd9372024c10fd6fab64bb212e2975106.tar.gz |
re PR middle-end/18667 (ice with --parm integer-share-limit=0)
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.
From-SVN: r91567
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 |