[Bug tree-optimization/26341] [4.2 Regression] 930217-1.c and 931013-3.c ICE at -O2 and above in add_virtual_operand

dberlin at dberlin dot org gcc-bugzilla@gcc.gnu.org
Fri Feb 17 14:42:00 GMT 2006



------- Comment #2 from dberlin at gcc dot gnu dot org  2006-02-17 14:42 -------
Subject: Re:  [4.2 Regression] 930217-1.c and
        931013-3.c ICE at -O2 and above in add_virtual_operand

On Fri, 2006-02-17 at 14:24 +0000, pinskia at gcc dot gnu dot org wrote:
> 
> ------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-17 14:24 -------
> From:
> http://gcc.gnu.org/ml/gcc-testresults/2006-02/msg00880.html
> 
> Confirmed independently also.
> The testcase:
> struct s
> {
>   int f;
> };
> struct s
> f ()
> {
>   int addr;
>   return *(struct s *) &addr;
> }
> 
> 

We have a similar testcase as gcc.dg/20000623-1.c and require
no-strict-aliasing there.

I'm inclined to believe this case requires -fno-strict-aliasing as well.

I can make it stop ICE'ing, but it's not gonna work properly :)


-- 


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



More information about the Gcc-bugs mailing list