[Bug target/43958] FAIL: gcc.dg/ipa/ipa-pta-10.c scan-ipa-dump pta "ESCAPED = { }"

dave at hiauly1 dot hia dot nrc dot ca gcc-bugzilla@gcc.gnu.org
Wed Jun 30 14:07:00 GMT 2010



------- Comment #9 from dave at hiauly1 dot hia dot nrc dot ca  2010-06-30 14:06 -------
Subject: Re:  FAIL: gcc.dg/ipa/ipa-pta-10.c scan-ipa-dump pta "ESCAPED = { }"

> Can you, instead of
> 
>       /* Copied from va-pa.h, but we probably don't need to align to
>          word size, since we generate and preserve that invariant.  */
>       u = size_int (size > 4 ? -8 : -4);
>       t = fold_convert (sizetype, t);
>       t = build2 (BIT_AND_EXPR, sizetype, t, u);
>       t = fold_convert (valist_type, t);
> 
> use
> 
>       u = build_int_cst (TREE_TYPE (t), (HOST_WIDE_INT)(size > 4 ? -8 : -4));
>       t = build2 (BIT_AND_EXPR, TREE_TYPE (t), t, u);
>       t = fold_convert (valist_type, t);
> 
> thus, perform the AND in pointer types?  This is what I am going to do
> to replace REALIGN_INDIRECT_REF with and teach PTA about this (so to not
> pessimize hppa here).

I'll test this change in my next build tonight.

Dave


-- 


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



More information about the Gcc-bugs mailing list