From 60cf253a8b1ebaabf6dd476a1177a24ab7f6d48c Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 22 Sep 2010 21:19:39 +0100 Subject: opts-common.c (prune_options): Make static. * opts-common.c (prune_options): Make static. Work with decoded options. (decode_cmdline_options_to_array): Call prune_options. Don't resize option array here. * opts.h (prune_options): Remove prototype. * gcc.c (process_command): Take decoded options; don't call decode_cmdline_options_to_array here. Use decoded options for argv[0]. (main): Call decode_cmdline_options_to_array here instead of prune_options. Update call to process_command. * config/darwin-driver.c: Include opts.h. (darwin_default_min_version): Work with decoded options. Don't handle -b or -V here. * config/darwin.h (darwin_default_min_version): Update prototype. (GCC_DRIVER_HOST_INITIALIZATION): Update call to darwin_default_min_version. * config/i386/cygwin.h (mingw_scan): Update prototype. (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan. * config/i386/cygwin1.c: Include opts.h. (mingw_scan): Work with decoded options. * config/i386/t-cygwin (cygwin1.o): Update dependencies. * config/t-darwin (darwin-driver.o): Update dependencies. From-SVN: r164532 --- gcc/opts.h | 1 - 1 file changed, 1 deletion(-) (limited to 'gcc/opts.h') diff --git a/gcc/opts.h b/gcc/opts.h index ed175e5..c4d253f 100644 --- a/gcc/opts.h +++ b/gcc/opts.h @@ -206,7 +206,6 @@ extern void decode_cmdline_options_to_array (unsigned int argc, unsigned int lang_mask, struct cl_decoded_option **decoded_options, unsigned int *decoded_options_count); -extern void prune_options (int *argcp, char ***argvp); extern void decode_options (unsigned int argc, const char **argv, struct cl_decoded_option **decoded_options, unsigned int *decoded_options_count); -- cgit v1.1