diff options
author | Richard Henderson <rth@cygnus.com> | 2000-06-01 02:40:07 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-06-01 02:40:07 -0700 |
commit | f3798d124f5e1b427252d59a9858c524f0736a8b (patch) | |
tree | a99a5b4a31ba49e9e9ca94b412f45d68e1553b9e | |
parent | a0179c6b75020a0198ded3d90e9bebb2e9466ed4 (diff) | |
download | gcc-f3798d124f5e1b427252d59a9858c524f0736a8b.zip gcc-f3798d124f5e1b427252d59a9858c524f0736a8b.tar.gz gcc-f3798d124f5e1b427252d59a9858c524f0736a8b.tar.bz2 |
decl2.c (unsupported_options): Fix typo, make const.
* decl2.c (unsupported_options): Fix typo, make const.
(lang_decode_option): Fix bsearch argument order.
From-SVN: r34334
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b2add72..d22c4ce 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-06-01 Richard Henderson <rth@cygnus.com> + + * decl2.c (unsupported_options): Fix typo, make const. + (lang_decode_option): Fix bsearch argument order. + 2000-06-01 Mark Mitchell <mark@codesourcery.com> * init.c (resolve_offset_ref): Remove check for TREE_ADDRESSABLE diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 9bf2276..8f1c681 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -562,10 +562,10 @@ lang_f_options[] = /* The list of `-f' options that we no longer support. The `-f' prefix is not given in this table. The `-fno-' variants are not listed here. This table must be kept in alphabetical order. */ -static const char *unsupported_options[] = { +static const char * const unsupported_options[] = { "all-virtual", "enum-int-equiv", - "guiding-decls" + "guiding-decls", "nonnull-objects", "this-is-variable", }; @@ -629,9 +629,9 @@ lang_decode_option (argc, argv) caller that the option was processed successfully. */ if (bsearch (&positive_option, unsupported_options, - sizeof (unsupported_options[0]), (sizeof (unsupported_options) / sizeof (unsupported_options[0])), + sizeof (unsupported_options[0]), compare_options)) { warning ("-f%s is no longer supported", p); |