Commit f3798d12 by Richard Henderson Committed by Richard Henderson

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
parent a0179c6b
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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment