diff options
author | Ian Lance Taylor <iant@google.com> | 2008-03-07 07:00:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-03-07 07:00:48 +0000 |
commit | c18476e7f14b56840771a64f13889078ccce685a (patch) | |
tree | 4f74513ded0d3023affed4d9bd5ce1da27112a41 /gold/options.h | |
parent | fb57e4dc7b25cad875af7fbdec1c05a5a50909ee (diff) | |
download | gdb-c18476e7f14b56840771a64f13889078ccce685a.zip gdb-c18476e7f14b56840771a64f13889078ccce685a.tar.gz gdb-c18476e7f14b56840771a64f13889078ccce685a.tar.bz2 |
Recognize --hash-bucket-empty-fraction.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h index 4fe73ab..1dff71f 100644 --- a/gold/options.h +++ b/gold/options.h @@ -71,7 +71,10 @@ extern void parse_uint(const char* option_name, const char* arg, int* retval); extern void -parse_uint64(const char* option_name, const char* arg, uint64_t *retval); +parse_uint64(const char* option_name, const char* arg, uint64_t* retval); + +extern void +parse_double(const char* option_name, const char* arg, double* retval); extern void parse_string(const char* option_name, const char* arg, const char** retval); @@ -281,6 +284,12 @@ struct Struct_special : public Struct_var #default_value__, helpstring__, helparg__, \ uint64_t, uint64_t, options::parse_uint64) +#define DEFINE_double(varname__, dashes__, shortname__, default_value__, \ + helpstring__, helparg__) \ + DEFINE_var(varname__, dashes__, shortname__, default_value__, \ + #default_value__, helpstring__, helparg__, \ + double, double, options::parse_double) + #define DEFINE_string(varname__, dashes__, shortname__, default_value__, \ helpstring__, helparg__) \ DEFINE_var(varname__, dashes__, shortname__, default_value__, \ @@ -466,6 +475,10 @@ class General_options DEFINE_string(soname, options::ONE_DASH, 'h', NULL, N_("Set shared library name"), N_("FILENAME")); + DEFINE_double(hash_bucket_empty_fraction, options::TWO_DASHES, '\0', 0.0, + N_("Min fraction of empty buckets in dynamic hash"), + N_("FRACTION")); + DEFINE_enum(hash_style, options::TWO_DASHES, '\0', "sysv", N_("Dynamic hash style"), N_("[sysv,gnu,both]"), {"sysv", "gnu", "both"}); |