aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Billinghurst <David.Billinghurst@riotinto.com>2001-09-05 09:07:11 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2001-09-05 09:07:11 +0000
commitcaa297fe38f3cd4f60596e49513c88efb9d31e83 (patch)
tree727ba112a2f81e810c2023c3726bb3e1ef82098e
parente7503d92508630ebc2537cf95da966f465bb9576 (diff)
downloadgcc-caa297fe38f3cd4f60596e49513c88efb9d31e83.zip
gcc-caa297fe38f3cd4f60596e49513c88efb9d31e83.tar.gz
gcc-caa297fe38f3cd4f60596e49513c88efb9d31e83.tar.bz2
gcc.c: (process_command) Add parentheses around assignment used as truth value.
* gcc.c: (process_command) Add parentheses around assignment used as truth value. From-SVN: r45411
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b9f1fc3..1352561 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-05 David Billinghurst <David.Billinghurst@riotinto.com>
+
+ * gcc.c: (process_command) Add parentheses around assignment
+ used as truth value.
+
2001-09-05 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.c (save_restore_insns): Don't mark any register
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 231d558..cbf62f8 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3577,9 +3577,9 @@ process_command (argc, argv)
have_c = 1;
break;
}
- else if (skip = SWITCH_TAKES_ARG (argv[j][1]))
+ else if ((skip = SWITCH_TAKES_ARG (argv[j][1])))
j += skip - (argv[j][2] != 0);
- else if (skip = WORD_SWITCH_TAKES_ARG (argv[j] + 1))
+ else if ((skip = WORD_SWITCH_TAKES_ARG (argv[j] + 1)))
j += skip;
}
j++;