diff options
author | Per Bothner <pbothner@apple.com> | 2003-07-31 19:26:17 +0000 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2003-07-31 12:26:17 -0700 |
commit | 40e941afc1a0d648ba1e42c0d50add96a64b1911 (patch) | |
tree | 1439a449d638a4d9ab3e37e56c424c1622a59ad9 /gcc/c-opts.c | |
parent | 17472bb623e869846f6d555995686bc54e499c10 (diff) | |
download | gcc-40e941afc1a0d648ba1e42c0d50add96a64b1911.zip gcc-40e941afc1a0d648ba1e42c0d50add96a64b1911.tar.gz gcc-40e941afc1a0d648ba1e42c0d50add96a64b1911.tar.bz2 |
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
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 85f9a0b..3e4a10a 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -52,8 +52,6 @@ static int saved_lineno; static cpp_options *cpp_opts; /* Input filename. */ -static const char **in_fnames; -unsigned num_in_fnames; static const char *this_input_filename; /* Filename and stream for preprocessed output. */ @@ -1032,15 +1030,6 @@ c_common_handle_option (size_t scode, const char *arg, int value) return result; } -/* Handle FILENAME from the command line. */ -void -c_common_handle_filename (const char *filename) -{ - num_in_fnames++; - in_fnames = xrealloc (in_fnames, num_in_fnames * sizeof (in_fnames[0])); - in_fnames[num_in_fnames - 1] = filename; -} - /* Post-switch processing. */ bool c_common_post_options (const char **pfilename) |