This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59659] large zero-initialized std::array compile time excessive
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 09 Jan 2014 16:25:16 +0000
- Subject: [Bug c++/59659] large zero-initialized std::array compile time excessive
- Auto-submitted: auto-generated
- References: <bug-59659-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59659
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 31785
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31785&action=edit
patch for the array initialization
Untested patch for the array initialization - if there are several (patch uses
10, could be say a param) consecutive same elements in the ctor, we can just
use a loop instead, and let it to the compiler to decide if it will want to
unroll it or not. I guess the initializer_list would need similar treatment.