[Bug c++/93092] New: g++ takes tremendous compilation times

admin@tho-otto.de gcc-bugzilla@gcc.gnu.org
Sat Dec 28 23:52:00 GMT 2019


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

            Bug ID: 93092
           Summary: g++ takes tremendous compilation times
           Product: gcc
           Version: 9.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: admin@tho-otto.de
  Target Milestone: ---

Created attachment 47558
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47558&action=edit
preprocessed version of nfosmesa_init.cpp

When compiling the attached, preprocessed file with -O2 (or above), and
generating debug information, cc1plus takes incredible compilation times (>5min
on a 4GHz Intel i7), and also uses incredible amounts of memory (> 16GB).

The attached file is a preprocessed version of a source file from the ARAnyM
project, and the original file contains just a single function.

Tried on openSUSE Tumbleweed:

$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/9/lto-wrapper
OFFLOAD_TARGET_NAMES=hsa:nvptx-none
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,ada,go,d
--enable-offload-targets=hsa,nvptx-none=/usr/nvptx-none, --without-cuda-driver
--disable-werror --with-gxx-include-dir=/usr/include/c++/9 --enable-ssp
--disable-libssp --disable-libvtv --disable-cet --disable-libcc1
--enable-plugin --with-bugurl=https://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-libphobos
--enable-version-specific-runtime-libs --with-gcc-major-version-only
--enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function
--program-suffix=-9 --without-system-libunwind --enable-multilib
--with-arch-32=x86-64 --with-tune=generic
--with-build-config=bootstrap-lto-lean --enable-link-mutex
--build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 9.2.1 20190903 [gcc-9-branch revision 275330] (SUSE Linux)


More information about the Gcc-bugs mailing list