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: [patch][gold] Fix build on 64 bits


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


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