This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Add ARM linker option --no-wchar-size-warning
- From: Daniel Jacobowitz <drow at false dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 14 Jul 2008 08:01:40 -0400
- Subject: Re: Add ARM linker option --no-wchar-size-warning
- References: <Pine.LNX.4.64.0807092200590.8064@digraph.polyomino.org.uk>
On Wed, Jul 09, 2008 at 10:02:41PM +0000, Joseph S. Myers wrote:
> The ARM linker has an option --no-enum-size-warning to avoid warning
> when linking objects whose EABI attributes specify different enum
> sizes, to be used in cases where the different sizes do not in fact
> affect the ABI used between the objects.
>
> This patch adds a similar option --no-wchar-size-warning for the
> wchar_t mismatch diagnostic. To match the enum diagnostic, the
> diagnostic is changed from an error to a warning, and is made to
> detail the particular wchar_t sizes involved in each object.
> Testcases are added for the various combinations of wchar_t sizes in
> input objects, with and without the new option.
>
> Tested with no regressions with cross to arm-none-eabi. OK to commit?
I have only one question: would it be more useful to have an option
that applied to all object attribute mismatches?
--
Daniel Jacobowitz
CodeSourcery