[commit: ghc] master: Test for misaligned sections, and fail if we find one (ada1385)

Simon Marlow marlowsd at gmail.com
Thu May 10 11:39:59 CEST 2012


On 08/05/2012 21:12, Ian Lynagh wrote:
>
> Hi Gaby,
>
> On Mon, May 07, 2012 at 02:22:47PM -0500, Gabriel Dos Reis wrote:
>>>
>>>        if (kind != SECTIONKIND_OTHER&&  end>= start) {
>>> +          if ((((size_t)(start)) % (size_t)sizeof(void *)) != 0) {
>>
>> I would suggest a systematic usage of uintptr_t when casting a pointer
>> to an unsigned integer type.
>
> I think you're right. We should do a mass-change at some point.

You can leave that to me if you like (or go ahead and do it yourself, I 
don't mind).

Cheers,
	Simon



More information about the Cvs-ghc mailing list