[Bug tree-optimization/18768] Missed ivopts opportunity

pthaugen at us dot ibm dot com gcc-bugzilla@gcc.gnu.org
Thu Dec 2 21:30:00 GMT 2004


------- Additional Comments From pthaugen at us dot ibm dot com  2004-12-02 21:30 -------
Here's another example of the same thing, minus the cast/double issue. This one
is strength reduced for 3.4 but not for 4.0.

typedef struct {
  union {
    unsigned int Init[9];
    unsigned char Link[37];
  } u;
} BitStreamLinkStruct;
void f2(BitStreamLinkStruct *);

void f1 ()
{
  int  ixBlock;
  BitStreamLinkStruct bitStreamLink;

  for(ixBlock=0; ixBlock<=7; ixBlock++){
    bitStreamLink.u.Init[ixBlock] = 0x1e1e1e1e;
  }

  f2(&bitStreamLink);

}


-- 


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



More information about the Gcc-bugs mailing list