This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [GOOGLE] handle TYPE_PACK_EXPANSION in lipo_cmp_type
- From: Xinliang David Li <davidxl at google dot com>
- To: Dehao Chen <dehao at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 5 May 2014 20:49:25 -0700
- Subject: Re: [GOOGLE] handle TYPE_PACK_EXPANSION in lipo_cmp_type
- Authentication-results: sourceware.org; auth=none
- References: <CAO2gOZWsnQTLs6KF85mzX9uoDmOjcYdSd-iJmWTezQ+VuN19tw at mail dot gmail dot com>
ok. Also needed in google/gcc-4_9 branch.
David
On Mon, May 5, 2014 at 8:40 PM, Dehao Chen <dehao@google.com> wrote:
> This patch handles TYPE_PACK_EXPANSION in lipo_cmp_type.
>
> testing on going. OK for google-4_8?
>
> Thanks,
> Dehao
>
> Index: gcc/l-ipo.c
>
> ===================================================================
>
> --- gcc/l-ipo.c (revision 209226)
>
> +++ gcc/l-ipo.c (working copy)
>
> @@ -676,6 +676,7 @@ lipo_cmp_type (tree t1, tree t2)
>
> case POINTER_TYPE:
>
> case REFERENCE_TYPE:
>
> case COMPLEX_TYPE:
>
> + case TYPE_PACK_EXPANSION:
>
> return lipo_cmp_type (TREE_TYPE (t1), TREE_TYPE (t2));
>
> case ARRAY_TYPE:
>
> return (TYPE_DOMAIN (t1) == NULL || TYPE_DOMAIN (t2) == NULL