diff options
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/gcc.c | 8 |
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f0d8cbc69a6..e56c5b48632 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2005-11-27 Mark Mitchell <mark@codesourcery.com> + + * gcc.c (main): Change type of argv to "char **". + +2005-11-23 Mark Mitchell <mark@codesourcery.com> + + * gcc.c (main): Call expandargv. + 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr> PR rtl-optimization/29329 diff --git a/gcc/gcc.c b/gcc/gcc.c index a493049419f..256a577af36 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -6057,10 +6057,10 @@ fatal_error (int signum) kill (getpid (), signum); } -extern int main (int, const char **); +extern int main (int, char **); int -main (int argc, const char **argv) +main (int argc, char **argv) { size_t i; int value; @@ -6081,6 +6081,8 @@ main (int argc, const char **argv) prune_options (&argc, &argv); + expandargv (&argc, &argv); + #ifdef GCC_DRIVER_HOST_INITIALIZATION /* Perform host dependent initialization when needed. */ GCC_DRIVER_HOST_INITIALIZATION; @@ -6173,7 +6175,7 @@ main (int argc, const char **argv) Make a table of specified input files (infiles, n_infiles). Decode switches that are handled locally. */ - process_command (argc, argv); + process_command (argc, (const char **) argv); /* Initialize the vector of specs to just the default. This means one element containing 0s, as a terminator. */ |