[Bug tree-optimization/25860] [4.2 Regression] ice with -g -O2 -fPIC

dberlin at dberlin dot org gcc-bugzilla@gcc.gnu.org
Fri Jan 20 18:30:00 GMT 2006



------- Comment #9 from dberlin at gcc dot gnu dot org  2006-01-20 18:30 -------
Subject: Re:  [4.2 Regression] ice with -g -O2
        -fPIC

On Fri, 2006-01-20 at 17:03 +0000, pinskia at gcc dot gnu dot org wrote:
> 
> ------- Comment #8 from pinskia at gcc dot gnu dot org  2006-01-20 17:03 -------
> This patch worked though:
> Index: tree-ssa-pre.c
> ===================================================================
> --- tree-ssa-pre.c      (revision 110017)
> +++ tree-ssa-pre.c      (working copy)
> @@ -1159,7 +1159,7 @@ phi_translate (tree expr, value_set_t se
>         VEC (tree, gc) * oldvuses = NULL;
>         VEC (tree, gc) * newvuses = NULL;
> 
> -       if (TREE_CODE (expr) != INDIRECT_REF)
> +       if (TREE_CODE (expr) != INDIRECT_REF && !AGGREGATE_TYPE_P (TREE_TYPE
> (expr)))
>           return NULL;
> 


Changing this to "|| AGGREGATE_TYPE_P ...." should also be enough to fix
this.


-- 


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



More information about the Gcc-bugs mailing list