[gold patch] Add Swap_aligned32 template for writing gdb index

Ian Lance Taylor iant@google.com
Mon Apr 23 23:11:00 GMT 2012


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



More information about the Binutils mailing list