From 40e941afc1a0d648ba1e42c0d50add96a64b1911 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Thu, 31 Jul 2003 19:26:17 +0000 Subject: opts.c (in_fnames, [...]): Moved here from c-opts. * opts.c (in_fnames, num_in_fnames): Moved here from c-opts. (add_input_filename): New function. (handle_options): Call add_input_filename directly instead of with a lang hook. * opts.h (in_fnames, num_in_fnames): Moved here. (add_input_filename): Declare. * c-decl.c: Need to #include opts.h. * Makefile.in (c-decl.o): Also depends on opts.h. * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c. (c_common_handle_filename): Replaced by add_input_filename. * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename): Remove. * langhooks.h (struct lang_hooks): Remove handle_filename hook. * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro. (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME. * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro. From-SVN: r70012 --- gcc/c-common.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gcc/c-common.h') diff --git a/gcc/c-common.h b/gcc/c-common.h index 6590453..aecf963 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -845,11 +845,6 @@ extern int max_tinst_depth; extern int skip_evaluation; -/* The count of input filenames. Only really valid for comparisons - against 1. */ - -extern unsigned num_in_fnames; - /* C types are partitioned into three subsets: object, function, and incomplete types. */ #define C_TYPE_OBJECT_P(type) \ @@ -901,7 +896,6 @@ extern tree handle_format_attribute (tree *, tree, tree, int, bool *); extern tree handle_format_arg_attribute (tree *, tree, tree, int, bool *); extern void c_common_insert_default_attributes (tree); extern int c_common_handle_option (size_t code, const char *arg, int value); -extern void c_common_handle_filename (const char *filename); extern bool c_common_missing_argument (const char *opt, size_t code); extern tree c_common_type_for_mode (enum machine_mode, int); extern tree c_common_type_for_size (unsigned int, int); -- cgit v1.1