diff options
author | Mark Mitchell <mark@codesourcery.com> | 2007-01-24 18:40:06 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-01-24 18:40:06 +0000 |
commit | d5648ee5d5fdfa53c8f212cdf86cfc7703092f51 (patch) | |
tree | 441638a0360e070a5ee32ddbb8907c8973684fd7 | |
parent | 2312fd09e5869012bf84c968424e0784c374a2f4 (diff) |
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.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/redhat/gcc-4_1-branch-java-merge-20070117@121122 138bc75d-0d04-0410-961f-82ee72b054a4
-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. */ |