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: Add ARM linker option --no-wchar-size-warning


On Mon, 14 Jul 2008, Daniel Jacobowitz wrote:

> 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?

Declaring the particular mismatches you know do not actually affect the 
ABI between your objects seems safer than allowing all mismatches, even if 
a single option would be simpler for use in the GCC testsuites.

-- 
Joseph S. Myers
joseph@codesourcery.com


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