This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH COMMITTED: Fix minor bug in ARM port
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Cc: dougkwan at google dot com
- Date: Wed, 03 Jun 2009 07:06:28 -0700
- Subject: PATCH COMMITTED: Fix minor bug in ARM port
I committed this patch to fix a minor bug in the in-progress ARM port: I
changed | to ||. This was causing a "suggest parentheses" warning.
Ian
2009-06-03 Ian Lance Taylor <iant@google.com>
* arm.cc (Target_arm::scan::global): Use || instead of |.
Index: arm.cc
===================================================================
RCS file: /cvs/src/src/gold/arm.cc,v
retrieving revision 1.3
diff -p -u -r1.3 arm.cc
--- arm.cc 3 Jun 2009 00:06:15 -0000 1.3
+++ arm.cc 3 Jun 2009 14:04:47 -0000
@@ -943,7 +943,7 @@ Target_arm<big_endian>::Scan::global(con
// Make a dynamic relocation if necessary.
int flags = Symbol::NON_PIC_REF;
if (gsym->type() == elfcpp::STT_FUNC
- | gsym->type() == elfcpp::STT_ARM_TFUNC)
+ || gsym->type() == elfcpp::STT_ARM_TFUNC)
flags |= Symbol::FUNCTION_CALL;
if (gsym->needs_dynamic_reloc(flags))
{