public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/27498]  New: fold does not fold reads from constant static strings
@ 2006-05-08 16:14 rguenth at gcc dot gnu dot org
  2006-05-08 16:19 ` [Bug middle-end/27498] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-05-08 16:14 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-05-15 19:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-08 16:14 [Bug middle-end/27498] New: fold does not fold reads from constant static strings rguenth at gcc dot gnu dot org
2006-05-08 16:19 ` [Bug middle-end/27498] " rguenth at gcc dot gnu dot org
2006-05-09  7:21 ` pinskia at gcc dot gnu dot org
2006-05-09 14:17 ` rguenth at gcc dot gnu dot org
2006-05-09 14:26 ` rguenth at gcc dot gnu dot org
2006-05-15 19:37 ` patchapp at dberlin dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).