From: rsandifo Date: Wed, 5 Sep 2001 09:07:11 +0000 (+0000) Subject: * gcc.c: (process_command) Add parentheses around assignment X-Git-Tag: upstream/4.9.2~92224 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f73594930894d281bd99d22fba74c0a12dbdd7fa;p=platform%2Fupstream%2Flinaro-gcc.git * gcc.c: (process_command) Add parentheses around assignment used as truth value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45411 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 + + * 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 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++;