This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch]: Add support of new __int128 type for targets having 128-bit integer scalar support
2010/5/26 Jason Merrill <jason@redhat.com>:
> On 05/26/2010 05:26 AM, Kai Tietz wrote:
>>
>> 2010/5/26 Jason Merrill<jason@redhat.com>:
>>>
>>> On 05/25/2010 05:44 PM, Kai Tietz wrote:
>>>>
>>>> +__extension__ typedef __SIZE_TYPE__ ssize_t;
>>>
>>> Why "ssize_t"? ?That looks to me like "signed size type", but
>>> __SIZE_TYPE__
>>> is unsigned. ?You also don't need __extension__.
>>
>> Please note about the #define unsigned before.
>
> Aha.
>
>> This trick is a bit
>> ugly but already in use at many places to get an signed type by
>> __SIZE_TYPE__ macro. As prior version worked on signed integers, I
>> kept here this.
>> Maybe an idea would be to define as builtin macro also the
>> __SSIZE_TYPE__, but as this isn't present at the moment this kludge
>> works fine.
>
> I think __PTRDIFF_TYPE__ is what you want.
>
> Jason
>
Patch applied at revision 159879 to trunk. Jason approved patches on IRC.
Thanks,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination