This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/45410] constant not optimized / propagated
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Aug 2010 07:33:57 -0000
- Subject: [Bug middle-end/45410] constant not optimized / propagated
- References: <bug-45410-16895@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2010-08-26 07:33 -------
That's not the main problem here. The problem is that this is an aggregate and
we SRA only automatic vars, not global vars. And it isn't constant either
(neither declared, nor actually, so can't be detected as constant). Special
handling of main would just add info that it is called only once in the
lifetime of the program.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45410