Commit e451301f by Mark Mitchell Committed by Mark Mitchell

re PR bootstrap/14356 (gcc.c:3661: error: assignment of read-only location)

	PR bootstrap/14356
	* gcc.c (process_command): Remove const-qualification from argv.
	(main): Likewise.

From-SVN: r78751
parent b698e58b
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> 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (pushqi1_h8300hs): Rename to * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
......
...@@ -340,7 +340,7 @@ static void display_help (void); ...@@ -340,7 +340,7 @@ static void display_help (void);
static void add_preprocessor_option (const char *, int); static void add_preprocessor_option (const char *, int);
static void add_assembler_option (const char *, int); static void add_assembler_option (const char *, int);
static void add_linker_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 int execute (void);
static void alloc_args (void); static void alloc_args (void);
static void clear_args (void); static void clear_args (void);
...@@ -3076,7 +3076,7 @@ add_linker_option (const char *option, int len) ...@@ -3076,7 +3076,7 @@ add_linker_option (const char *option, int len)
Store its length in `n_switches'. */ Store its length in `n_switches'. */
static void static void
process_command (int argc, const char *const *argv) process_command (int argc, const char **argv)
{ {
int i; int i;
const char *temp; const char *temp;
...@@ -3314,10 +3314,10 @@ process_command (int argc, const char *const *argv) ...@@ -3314,10 +3314,10 @@ process_command (int argc, const char *const *argv)
} }
/* Convert new-style -- options to old-style. */ /* 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. */ /* 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 /* 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. there will be in their vector, and how many input files in theirs.
...@@ -5904,10 +5904,10 @@ fatal_error (int signum) ...@@ -5904,10 +5904,10 @@ fatal_error (int signum)
kill (getpid (), signum); kill (getpid (), signum);
} }
extern int main (int, const char *const *); extern int main (int, const char **);
int int
main (int argc, const char *const *argv) main (int argc, const char **argv)
{ {
size_t i; size_t i;
int value; int value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment