X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Flanghooks.h;h=1af12be3b51ce3221a8702a8dc4ec233cde58458;hb=65650a47d37caf11fa040cf96e7c06229ade8611;hp=6c9f80dec4b8d387b110a90dc20a5efca922d06d;hpb=fecf90116e4c155515833b5e939cdaad4afb9b53;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/langhooks.h b/gcc/langhooks.h index 6c9f80dec4b..1af12be3b51 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -23,7 +23,6 @@ along with GCC; see the file COPYING3. If not see /* This file should be #include-d after tree.h. */ -struct diagnostic_context; struct diagnostic_info; struct gimplify_omp_ctx; @@ -138,11 +137,6 @@ struct lang_hooks_for_types return values from functions. The argument TYPE is the top of the chain, and BOTTOM is the new type which we will point to. */ tree (*reconstruct_complex_type) (tree, tree); - - /* Nonzero if types that are identical are to be hashed so that only - one copy is kept. If a language requires unique types for each - user-specified type, such as Ada, this should be set to TRUE. */ - bool hash_types; }; /* Language hooks related to decls and the symbol table. */ @@ -273,14 +267,18 @@ struct lang_hooks of options. */ unsigned int (*option_lang_mask) (void); + /* Initialize variables in an options structure. */ + void (*init_options_struct) (struct gcc_options *opts); + /* After the initialize_diagnostics hook is called, do any simple - initialization needed before any calls to handle_option. */ + initialization needed before any calls to handle_option, other + than that done by the init_options_struct hook. */ void (*init_options) (unsigned int decoded_options_count, struct cl_decoded_option *decoded_options); /* Callback used to perform language-specific initialization for the global diagnostic context structure. */ - void (*initialize_diagnostics) (struct diagnostic_context *); + void (*initialize_diagnostics) (diagnostic_context *); /* Return true if a warning should be given about option OPTION, which is for the wrong language, false if it should be quietly @@ -292,11 +290,12 @@ struct lang_hooks which points to permanent storage. The handler is responsible for checking whether ARG is NULL, which indicates that no argument was in fact supplied. For -f and -W switches, VALUE is 1 or 0 - for the positive and negative forms respectively. + for the positive and negative forms respectively. HANDLERS should + be passed to any recursive handle_option calls. - Return 1 if the switch is valid, 0 if invalid, and -1 if it's - valid and should not be treated as language-independent too. */ - int (*handle_option) (size_t code, const char *arg, int value, int kind); + Return true if the switch is valid, false if invalid. */ + bool (*handle_option) (size_t code, const char *arg, int value, int kind, + const struct cl_option_handlers *handlers); /* Called when all command line options have been parsed to allow further processing and initialization @@ -378,7 +377,7 @@ struct lang_hooks int (*types_compatible_p) (tree x, tree y); /* Called by report_error_function to print out function name. */ - void (*print_error_function) (struct diagnostic_context *, const char *, + void (*print_error_function) (diagnostic_context *, const char *, struct diagnostic_info *); /* Convert a character from the host's to the target's character