This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/35561] Promote written once local aggregates to static
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Jun 2011 03:18:01 +0000
- Subject: [Bug middle-end/35561] Promote written once local aggregates to static
- Auto-submitted: auto-generated
- References: <bug-35561-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35561
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-06-23 03:17:58 UTC ---
At one point this was done but it was found it violated C rules. I can find
the bug report but I am being lazy right now but it comes down to if it was
promoted then you have issues if it escaped. Oh and technically a[i] does
take the address of a.