diff options
author | Alan Modra <amodra@gmail.com> | 2019-06-25 16:56:16 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-06-25 16:57:15 +0930 |
commit | de62696504f96816faf2165132d907924e904649 (patch) | |
tree | 4d11060c944b6966bc3f1cc103bb4c51e515dd23 | |
parent | 22f72c4868a1fd55d8d9b1cbabe6e01ed5a6f072 (diff) | |
download | binutils-de62696504f96816faf2165132d907924e904649.zip binutils-de62696504f96816faf2165132d907924e904649.tar.gz binutils-de62696504f96816faf2165132d907924e904649.tar.bz2 |
Fix logical expression in last commit
* config/tc-ppc.c (ppc_handle_align): Add parentheses.
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1e29627..c7dc37d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ 2019-06-25 Alan Modra <amodra@gmail.com> + * config/tc-ppc.c (ppc_handle_align): Add parentheses. + +2019-06-25 Alan Modra <amodra@gmail.com> + * config/tc-ppc.h (ppc_nop_select): Declare. (NOP_OPCODE): Define. * config/tc-ppc.c (ppc_elf_end, ppc_xcoff_end): Zero ppc_cpu. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index de0f8da..5f8d120 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -7122,7 +7122,7 @@ ppc_handle_align (struct frag *fragP) with nops but odd counts indicate data in an executable section so padding with zeros is most appropriate. */ if (count == 0 - || nop_select == PPC_NOP_VLE ? (count & 1) != 0 : (count & 3) != 0) + || (nop_select == PPC_NOP_VLE ? (count & 1) != 0 : (count & 3) != 0)) { *dest = 0; return; |