This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: type problems in conform tests...
- From: David Miller <davem at davemloft dot net>
- To: joseph at codesourcery dot com
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 22 Apr 2014 17:49:26 -0400 (EDT)
- Subject: Re: type problems in conform tests...
- Authentication-results: sourceware.org; auth=none
- References: <20140421 dot 144641 dot 1442211345567521493 dot davem at davemloft dot net> <Pine dot LNX dot 4 dot 64 dot 1404222136360 dot 31754 at digraph dot polyomino dot org dot uk>
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.