[Bug c++/101720] New: compile time hog with -g -O2

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Mon Aug 2 09:27:36 GMT 2021


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

            Bug ID: 101720
           Summary: compile time hog with -g -O2
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 51239
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51239&action=edit
gzipped C++ source code

The attached C++ code takes a suspiciously long time with flags -g -O2.

$ time ../results.20210731.release/bin/gcc -c -O2 -g bug741.cc

real    5m24.015s
user    5m9.055s
sys     0m7.148s


More information about the Gcc-bugs mailing list