This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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))
 	  {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]