aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-03-02 05:59:29 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-03-02 05:59:29 +0000
commite451301f7815dd2a360424cbc197848b41ba84c3 (patch)
treee533ab3b886e43bedde27397b445f74b2e1aa74f /gcc/gcc.c
parentb698e58b8c5584f358977a4982b9664404ede0a9 (diff)
downloadgcc-e451301f7815dd2a360424cbc197848b41ba84c3.zip
gcc-e451301f7815dd2a360424cbc197848b41ba84c3.tar.gz
gcc-e451301f7815dd2a360424cbc197848b41ba84c3.tar.bz2
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
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 78e82c4..d69da44 100644
--- 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;