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
This commit is contained in:
David Billinghurst 2001-09-05 09:07:11 +00:00 committed by Richard Sandiford
parent e7503d9250
commit caa297fe38
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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++;