https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99785
Bug ID: 99785 Summary: Awful lot of time spent building gl.cc in Firefox Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mh+gcc at glandium dot org Target Milestone: --- Created attachment 50475 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50475&action=edit gl.ii.gz Compiling the attached preprocessed source takes 27 minutes with GCC 10 with `g++ -o gl.o -c gl.ii -O2 -std=gnu++17 -g -pipe` and a grand total of 21GB of memory spread between cc1plus (15G) and gas (6GB). It's also slow to process at -O0. This goes up to 4 hours (!) with GCC 11 and less than 1 minute with clang.