How to migrate POINTER_TYPE_OVERFLOW_UNDEFINED for GCC v8.x?
Leslie Zhai
lesliezhai@llvm.org.cn
Fri Aug 4 08:16:00 GMT 2017
Hi Bin,
Thanks for your kind response!
å¨ 2017å¹´08æ04æ¥ 15:45, Bin.Cheng åé:
> On Fri, Aug 4, 2017 at 8:00 AM, Leslie Zhai <lesliezhai@llvm.org.cn> wrote:
>> Hi GCC developers,
>>
>> As ChangeLog mentioned:
>>
>> 2017-08-01 Bin Cheng <bin.cheng@arm.com>
>>
>> * tree.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Delete.
>>
>>
>> Then how to migrate it for GCC v8.x? for example:
>>
>> Constant *Result = POINTER_TYPE_OVERFLOW_UNDEFINED ? A : B;
>>
>> migrated to
>>
>> Constant *Result = A;
> Yes, basically this is what I did in the patch: simply assuming TRUE
> and simplifying the expression.
I migrated to GCC v8.x now
https://github.com/xiangzhai/dragonegg/commit/d78389c502f5a06b21fcf1a1590e44451e59f461
thanks for your patch's hint :) it can't work for GCC v8.x, even though
compiled without error, but able to work for GCC v4.6 and v4.8, I am
stuck at rtl_opt_pass https://gcc.gnu.org/ml/gcc/2017-08/msg00045.html
hope I can figure it out the root cause.
>
> Thanks,
> bin
>>
>> because there was a patch 'Make pointer overflow always undefined and remove
>> the macro' https://patchwork.ozlabs.org/patch/792677/
>>
>> please give me some hint, thanks a lot!
>>
>> --
>> Regards,
>> Leslie Zhai - a LLVM developer https://reviews.llvm.org/p/xiangzhai/
>>
>>
>>
--
Regards,
Leslie Zhai - a LLVM developer https://reviews.llvm.org/p/xiangzhai/
More information about the Gcc
mailing list