diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-17 21:11:46 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-17 21:11:46 +0000 |
commit | 467829319b1fd38f35b497a6ebb34faebd0c0046 (patch) | |
tree | 77f7ad02352b14c374885d01832263369b4fe32c /gcc/toplev.c | |
parent | 0bae362cf13c5130f4bea3d4edd3fdc8450b5c85 (diff) | |
download | gcc-467829319b1fd38f35b497a6ebb34faebd0c0046.tar.gz |
PR 31567
* gcc.c (create_at_file): New.
(compile_input_file_p): New.
(do_spec_1): Use @args files for %i. Use create_at_file for %o.
* main.c (main): Update call to toplev_main.
* toplev.c (toplev_main): Change signature. Call expandargv.
* toplev.h (toplev_main): Change signature.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146292 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 0f3d30b3b63..bd709fc2dce 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2261,16 +2261,18 @@ do_compile (void) It is not safe to call this function more than once. */ int -toplev_main (unsigned int argc, const char **argv) +toplev_main (int argc, char **argv) { - save_argv = argv; + expandargv (&argc, &argv); + + save_argv = (const char **) argv; /* Initialization of GCC's environment, and diagnostics. */ general_init (argv[0]); /* Parse the options and do minimal processing; basically just enough to default flags appropriately. */ - decode_options (argc, argv); + decode_options (argc, (const char **) argv); init_local_tick (); |