]> gcc.gnu.org Git - gcc.git/commitdiff
re PR bootstrap/14356 (gcc.c:3661: error: assignment of read-only location)
authorMark Mitchell <mark@codesourcery.com>
Tue, 2 Mar 2004 05:59:29 +0000 (05:59 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 2 Mar 2004 05:59:29 +0000 (05:59 +0000)
PR bootstrap/14356
* gcc.c (process_command): Remove const-qualification from argv.
(main): Likewise.

From-SVN: r78751

gcc/ChangeLog
gcc/gcc.c

index dfd778ca3ad1e38ab3b26beaf88ab6caa48a39f7..27794764aa6136d33dac0c6cc5fcda68bbf7af93 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-01  Mark Mitchell  <mark@codesourcery.com>
+
+       PR bootstrap/14356
+       * gcc.c (process_command): Remove const-qualification from argv.
+       (main): Likewise.
+
 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
index 78e82c49bd9e10398e8ee2bcbcaeca98a8679dea..d69da44675d99ca5cbf9ba7d101330a62b391aad 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -340,7 +340,7 @@ static void display_help (void);
 static void add_preprocessor_option (const char *, int);
 static void add_assembler_option (const char *, int);
 static void add_linker_option (const char *, int);
-static void process_command (int, const char *const *);
+static void process_command (int, const char **);
 static int execute (void);
 static void alloc_args (void);
 static void clear_args (void);
@@ -3076,7 +3076,7 @@ add_linker_option (const char *option, int len)
    Store its length in `n_switches'.  */
 
 static void
-process_command (int argc, const char *const *argv)
+process_command (int argc, const char **argv)
 {
   int i;
   const char *temp;
@@ -3314,10 +3314,10 @@ process_command (int argc, const char *const *argv)
     }
 
   /* Convert new-style -- options to old-style.  */
-  translate_options (&argc, &argv);
+  translate_options (&argc, (const char *const **) &argv);
 
   /* Do language-specific adjustment/addition of flags.  */
-  lang_specific_driver (&argc, &argv, &added_libraries);
+  lang_specific_driver (&argc, (const char *const **) &argv, &added_libraries);
 
   /* Scan argv twice.  Here, the first time, just count how many switches
      there will be in their vector, and how many input files in theirs.
@@ -5904,10 +5904,10 @@ fatal_error (int signum)
   kill (getpid (), signum);
 }
 
-extern int main (int, const char *const *);
+extern int main (int, const char **);
 
 int
-main (int argc, const char *const *argv)
+main (int argc, const char **argv)
 {
   size_t i;
   int value;
This page took 0.090876 seconds and 5 git commands to generate.