[Bug middle-end/27498] New: fold does not fold reads from constant static strings
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon May 8 16:14:00 GMT 2006
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
More information about the Gcc-bugs
mailing list