diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-01-02 23:18:59 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-01-02 23:18:59 +0000 |
commit | 5e65297bbb0b49c238b9543a6e730ef54c54196d (patch) | |
tree | 1b3ba80e154ddb807e8dfcaefbbd0018b015a992 /libiberty | |
parent | 0c5d8c8236e9bbbbede3c7f45396d4f9eeaceddd (diff) | |
download | gcc-5e65297bbb0b49c238b9543a6e730ef54c54196d.zip gcc-5e65297bbb0b49c238b9543a6e730ef54c54196d.tar.gz gcc-5e65297bbb0b49c238b9543a6e730ef54c54196d.tar.bz2 |
gcc.c (default_compilers): Const-ify.
* gcc.c (default_compilers): Const-ify.
* mips-tdump.c (stab_names): Likewise.
* mips-tfile.c (map_coff_types, map_coff_storage,
map_coff_sym_type, map_coff_derived_type, stabs_symbol,
pseudo_ops_t, pseudo_ops): Likewise.
* protoize.c (default_include): Likewise
f:
* com.c (clear_binding_level): Const-ify.
(ffecom_arglist_expr_): Likewise.
* info.c (ffeinfo_types_): Don't needlessly zero init.
* lex.c (ffelex_hash_kludge): Const-ify.
java:
* parse.y (src_parse_roots): Don't needlessly zero init.
libiberty:
* cp-demangle.c (long_options): Const-ify.
* cplus-dem.c (long_options): Likewise.
From-SVN: r48485
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 3 | ||||
-rw-r--r-- | libiberty/cp-demangle.c | 2 | ||||
-rw-r--r-- | libiberty/cplus-dem.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 9292971..fdccb59 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,5 +1,8 @@ 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + * cp-demangle.c (long_options): Const-ify. + * cplus-dem.c (long_options): Likewise. + * cplus-dem.c (mystrstr): Delete. All callers changed to use strstr instead. diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index b61ff2c..457a09f 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -3945,7 +3945,7 @@ print_usage (fp, exit_value) } /* Option specification for getopt_long. */ -static struct option long_options[] = +static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "strict", no_argument, NULL, 's' }, diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 691eb71..5af8826 100644 --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -4947,7 +4947,7 @@ extern int prepends_underscore; int strip_underscore = 0; -static struct option long_options[] = { +static const struct option long_options[] = { {"strip-underscores", no_argument, 0, '_'}, {"format", required_argument, 0, 's'}, {"help", no_argument, 0, 'h'}, |