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]

Re: [gold patch] Add Swap_aligned32 template for writing gdb index


Cary Coutant <ccoutant@google.com> writes:

> 2012-04-23  Cary Coutant  <ccoutant@google.com>
>
> elfcpp/
>
> 	* elfcpp_swap.h (struct Swap_aligned32): New template.
>
> gold/
>
> 	* gdb-index.cc (Gdb_index::do_write): Use Swap_aligned32 for writing
> 	CU range table of gdb index.

> +    return ((static_cast<Valtype>(Swap<32, true>::readval(wv)) << 32)
> +	    | static_cast<Valtype>(Swap<32, true>::readval(wv+4)));

Add spaces around the '+' here and in three other locations.

OK with that change.

Thanks.

Ian


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