This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/12342] [tree-ssa] staticvariables in static functions are incorrectly "optimized" away
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2003 19:23:29 -0000
- Subject: [Bug middle-end/12342] [tree-ssa] staticvariables in static functions are incorrectly "optimized" away
- References: <20030919185059.12342.gerald@pfeifer.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12342
schwab at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schwab at suse dot de
------- Additional Comments From schwab at suse dot de 2003-09-19 19:23 -------
Does reverting this change fix the bug (see bug 12313)?
2003-09-15 Jason Merrill <jason@redhat.com>
* tree-simple.c (is_gimple_val): Allow addresses of all decls.
(is_gimple_const): Allow addresses of all non-weak statics.
* tree-ssa-ccp.c (fold_stmt): Return bool.
* tree-flow.h: Adjust prototype.
* tree-ssa-dom.c (optimize_stmt): If folding changed stuff, we
need to recalculate the vops.