This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to migrate POINTER_TYPE_OVERFLOW_UNDEFINED for GCC v8.x?
- From: "Bin.Cheng" <amker dot cheng at gmail dot com>
- To: Leslie Zhai <lesliezhai at llvm dot org dot cn>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Fri, 4 Aug 2017 08:45:14 +0100
- Subject: Re: How to migrate POINTER_TYPE_OVERFLOW_UNDEFINED for GCC v8.x?
- Authentication-results: sourceware.org; auth=none
- References: <67fddd5c-2d2a-a30f-14a4-925bed6ca15e@llvm.org.cn>
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.
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/
>
>
>