void zconfdump(void)
{
  char *p, *p2;
  for (p2 = p; p2; )
    {
      char __a0, __a1, __a2;
      __a0 = ((__const char *) ("\"\\"))[0];
      if (__a0)
        return;
    }
}

we do not fold the read from "\"\\".  Me & Dirk have a fix.


-- 
           Summary: fold does not fold reads from constant static strings
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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

Reply via email to