[PATCH] c++98/mt_allcoator.cc: Fix assumption sizeof(void *) == sizeof(size_t)

Paolo Carlini paolo.carlini@oracle.com
Mon Nov 10 19:04:00 GMT 2014


Hi,

On 11/10/2014 07:34 PM, Jonathan Wakely wrote:
> On 10/11/14 12:01 -0600, Joel Sherrill wrote:
>> cc'ing since both lists should be included.
>>
>> The m32c has 24-bit pointers and 16-bit size_t. This changes
>> pushing a pointer through a size_t to pushing it through a
>> uintptr_t.
>
> I'm OK with this change if Paolo is.
No problem with the experiment (frankly, I'm not at all sure that the 
targets not providing <stdint.h> are *that* much uncommon than the 
target which we are fixing with the patch), but please add a comment 
about <stdint.h> in the code, then if bootstrap actually breaks the 
issue is clear...

Paolo.



More information about the Gcc-patches mailing list