This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: type problems in conform tests...


From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Tue, 22 Apr 2014 21:39:16 +0000

> On Mon, 21 Apr 2014, David Miller wrote:
> 
>> So I started looking at the conformance test failures on sparc, and
>> the one I'm looking at now requires that sa_flags in sigaction be
>> of type 'int' but it's 'unsigned long' on sparc.
>> 
>> What are we supposed to do in these situations?  We can't change the
>> type, so do I just ignore this test failure forever?
> 
> What I said for S/390 in 
> <https://sourceware.org/ml/libc-alpha/2014-03/msg00376.html> should apply 
> equally here: you should be able to make the type int with an explicit 
> padding field when required to keep the layout the same.

Yes, that should work for me too.  Thanks Joseph.

Now I also the opposite situation on sparc, where I'm using a too
small type.  That might be harder to just "fix".

For example si_band is "int" instead of "long int".  Alpha has this
problem too.


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