opts-common.c (prune_options): Make static.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 22 Sep 2010 20:19:39 +0000 (21:19 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 22 Sep 2010 20:19:39 +0000 (21:19 +0100)
commit60cf253a8b1ebaabf6dd476a1177a24ab7f6d48c
tree6f696b6dcc2f7574f8c3f96ec2645c09aa05edd8
parente200444e3bf13cabbb9ad5bd29fdc840f82462a8
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/ChangeLog
gcc/config/darwin-driver.c
gcc/config/darwin.h
gcc/config/i386/cygwin.h
gcc/config/i386/cygwin1.c
gcc/config/i386/t-cygwin
gcc/config/t-darwin
gcc/gcc.c
gcc/opts-common.c
gcc/opts.h