[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded

2006-05-08 Thread pinskia at gcc dot gnu dot org
--- Comment #24 from pinskia at gcc dot gnu dot org 2006-05-08 15:07 --- But that is not related to the orginal bug. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded

2006-05-08 Thread rguenth at gcc dot gnu dot org
--- Comment #23 from rguenth at gcc dot gnu dot org 2006-05-08 10:08 --- Dirk, you may want to take this one, too. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded

2006-05-08 Thread rguenth at gcc dot gnu dot org
--- Comment #22 from rguenth at gcc dot gnu dot org 2006-05-08 10:07 --- Doesn't really work, it misses support for STRING_CST. See PR22303. static const char *foo = "?"; char foobar () { return foo[0]; } Something like the following should fix it (once fold_read_from_constant_strin

[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded

2005-05-08 Thread kazu at cs dot umass dot edu
--- Additional Comments From kazu at cs dot umass dot edu 2005-05-08 21:30 --- Just checked in a patch. -- What|Removed |Added Status|ASSIGNED

[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded

2005-05-08 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-08 21:22 --- Subject: Bug 14841 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-05-08 21:22:21 Modified files: gcc: ChangeLog Makefile.in tree-ssa-ccp.c

[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded

2005-05-06 Thread schlie at comcast dot net
--- Additional Comments From schlie at comcast dot net 2005-05-07 05:12 --- (In reply to comment #17) > I've extended Steven's patch to handle nested aggregates > (i.e. any combination of ARRAY_REF and COMPONENT_REF). Does it also work with terminating static const char "strings" which

[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded

2005-05-06 Thread kazu at cs dot umass dot edu
--- Additional Comments From kazu at cs dot umass dot edu 2005-05-07 03:08 --- I've extended Steven's patch to handle nested aggregates (i.e. any combination of ARRAY_REF and COMPONENT_REF). -- What|Removed |Added ---

[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded

2005-05-03 Thread pinskia at gcc dot gnu dot org
-- Bug 14841 depends on bug 17046, which changed state. Bug 17046 Summary: An unused array is not optimized away. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17046 What|Old Value |New Value ---

[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded

2005-03-03 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added CC||pinskia at gcc dot gnu dot ||org Last reconfirmed|2004-12-03 0