This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [patch]: Add support of new __int128 type for targets having 128-bit integer scalar support


On Wed, May 26, 2010 at 9:15 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> 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.
>

I think it breaks bootstrap:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44287


-- 
H.J.


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