[Bug debug/33822] New: -g -O -mstrict-align causes an ICE in set_variable_part,

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 19 23:38:00 GMT 2007


Compile the following code at -O -g -mstrict-align and you get an ICE in
set_variable_part:

void ProjectOverlay(const float localTextureAxis[2], char *lump) {
   const void *d = &localTextureAxis;
   int size = sizeof(float)*8 ;
   __builtin_memcpy( &lump[ 0 ], d, size );  
 }


-----  CUT ------
Yes this code is undefined but it should not ICE.


-- 
           Summary: -g -O -mstrict-align causes an ICE in set_variable_part,
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc*-*-*


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



More information about the Gcc-bugs mailing list