This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold patch] Add Swap_aligned32 template for writing gdb index
- From: Ian Lance Taylor <iant at google dot com>
- Cc: Binutils <binutils at sourceware dot org>, David Miller <davem at davemloft dot net>
- Date: Mon, 23 Apr 2012 16:07:24 -0700
- Subject: Re: [gold patch] Add Swap_aligned32 template for writing gdb index
- >to: Cary Coutant <ccoutant@google.com>
- References: <CAHACq4osKPYb9ZFZ6+3w_NcfG3k=jLJFaK2r4wuhTAbGY4uCZg@mail.gmail.com>
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