This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/22303] New: CCP does not handle STRING_CSTs
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2005 03:11:50 -0000
- Subject: [Bug tree-optimization/22303] New: CCP does not handle STRING_CSTs
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Take the following example:
static const char f[3] = "?";
int main(void)
{
if (f[0] == '?')
abort ();
return 0;
}
We don't optitimize this at the tree level.
--
Summary: CCP does not handle STRING_CSTs
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: missed-optimization, TREE
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22303