Initial MIPS patch for GOLD - version 3

Ian Lance Taylor iant@google.com
Sat Jan 28 01:48:00 GMT 2012


Aleksandar Simeonov <Aleksandar.Simeonov@RT-RK.com> writes:

> * utils.h: New file that contains utilities for manipulating integers of
> up to 32-bits.
> * arm.cc (namespace utils): Removed common code to separate file (utils.h).
> * arm.cc (utils::sign_extend): Removed.
> * arm.cc (utils::has_overflow): Likewise.
> * arm.cc (utils::has_signed_unsigned_overflow): Likewise.
> * arm.cc (utils::bit_select): Likewise.
> - Functions that are common for MIPS and ARM architectures moved to
> separate file to avoid duplication of code.

I implemented this in a different way.  I moved the functions from
arm.cc into reloc.h.  I put them in a template class Bits and gave them
slightly different names.  Please update your sources as per the arm.cc
patch below, now committed to mainline.

Ian


2012-01-27  Ian Lance Taylor  <iant@google.com>

	* reloc.h (Bits): New class with static functions, copied from
	namespace utils in arm.cc.
	* arm.cc (namespace utils): Remove.  Rewrite all uses to use Bits
	instead.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 19708 bytes
Desc: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20120128/3095d652/attachment.bin>


More information about the Binutils mailing list