This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch][gold] Fix build on 64 bits
- From: Ian Lance Taylor <iant at google dot com>
- To: Rafael Espindola <espindola at google dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 08 Sep 2010 12:55:24 -0700
- Subject: Re: [patch][gold] Fix build on 64 bits
- References: <AANLkTimPNPW1OV9F638y_X09swNtZt_Nzzk-9oW_Fd6c@mail.gmail.com>
Rafael Espindola <espindola@google.com> writes:
> This fixes warning when building on a 64 bits host.
>
> 2010-09-08 Rafael Espindola <espindola@google.com>
>
> * script-sections.cc (Script_sections::add_memory_region): Convert
> field precision to int.
> * script.cc (script_set_section_region, script_set_section_region):
> Convert field precision to int.
> + gold_error (_("region '%.*s' already defined"), int(namelen), name);
Write static_cast<int>(namelen) (and you will probably have to break the
line).
> + int(namelen), name);
static_cast here too.
> + int(namelen), name);
And here.
The patch is OK with those changes.
Thanks.
Ian