This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/12814] Missed optimization with non-static but non-changing local arrays
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2004 15:06:56 -0000
- Subject: [Bug optimization/12814] Missed optimization with non-static but non-changing local arrays
- References: <20031028144536.12814.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-01-28 15:06 -------
Fixed indeed. For the cases I had in mind (and that are in the testcase) the arrays
were always marked "const" but not "static". This is now handled properly. The fact
that gcc could mark unchanging variables as if they were "const" is another thing, but
not subject of this PR.
Thanks
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12814