diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b9f1fc3ac27..1352561535d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-09-05 David Billinghurst + + * gcc.c: (process_command) Add parentheses around assignment + used as truth value. + 2001-09-05 Richard Sandiford * config/mips/mips.c (save_restore_insns): Don't mark any register diff --git a/gcc/gcc.c b/gcc/gcc.c index 231d5581aa4..cbf62f81b5a 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++;