From bb27e6c9bae423737f50d3024b7cb49843da4b67 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 20 Apr 1998 20:51:02 +0000 Subject: [PATCH] Fix i386-* failure that shows up as a cpp usage message. * gcc.c (do_spec_1, case '['): Move flag out of loop and initialize it. From-SVN: r19350 --- gcc/ChangeLog | 4 ++++ gcc/gcc.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 871f04dfbf1..fa11e459cd0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Apr 20 20:44:25 1998 Jim Wilson + + * gcc.c (do_spec_1, case '['): Move flag out of loop and initialize it. + Mon Apr 20 12:43:09 1998 Doug Evans * flow.c (sbitmap_vector_alloc): Ensure sbitmaps properly aligned. diff --git a/gcc/gcc.c b/gcc/gcc.c index ed2ef72e216..fa47ee3a5db 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -3869,13 +3869,12 @@ do_spec_1 (spec, inswitch, soft_matched_part) char *x = (char *) alloca (strlen (name) * 2 + 1); char *buf = x; char *y = name; + int flag = 0; /* Copy all of NAME into BUF, but put __ after every -D and at the end of each arg, */ while (1) { - int flag; - if (! strncmp (y, "-D", 2)) { *x++ = '-';