[Bug c++/71029] large fold expressions compile slowly with -Wall

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 9 19:14:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71029

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |compile-time-hog
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-05-09
     Ever confirmed|0                           |1

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Could be my profiling going wrong, but we seem to spend a lot of time in
mark_used, with a running time at least quadratic in 2048, so maybe we mark as
used all the previous elements of the comma chain, for each element?

Clang does not emit the thousands of get<1234> functions. I am not sure we want
to follow them there, as it would make debugging harder.


More information about the Gcc-bugs mailing list