This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/59659] large zero-initialized std::array compile time excessive


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]