[binutils-gdb] Fix logical expression in last commit

Alan Modra amodra@sourceware.org
Tue Jun 25 07:28:00 GMT 2019


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=de62696504f96816faf2165132d907924e904649

commit de62696504f96816faf2165132d907924e904649
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Jun 25 16:56:16 2019 +0930

    Fix logical expression in last commit
    
    	* config/tc-ppc.c (ppc_handle_align): Add parentheses.

Diff:
---
 gas/ChangeLog       | 4 ++++
 gas/config/tc-ppc.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

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;



More information about the Binutils-cvs mailing list