diff options
author | David Billinghurst <David.Billinghurst@riotinto.com> | 2001-09-05 09:07:11 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2001-09-05 09:07:11 +0000 |
commit | caa297fe38f3cd4f60596e49513c88efb9d31e83 (patch) | |
tree | 727ba112a2f81e810c2023c3726bb3e1ef82098e | |
parent | e7503d92508630ebc2537cf95da966f465bb9576 (diff) | |
download | gcc-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/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gcc.c | 4 |
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 @@ -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++; |