public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110257] New: [13 Regression] Excessive compile time and memory consumption
@ 2023-06-14 18:32 manuel.bergler at mvtec dot com
  2023-06-14 18:36 ` [Bug c++/110257] " manuel.bergler at mvtec dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: manuel.bergler at mvtec dot com @ 2023-06-14 18:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110257
           Summary: [13 Regression] Excessive compile time and memory
                    consumption
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manuel.bergler at mvtec dot com
  Target Milestone: ---

Compiling the attached file with GCC 13.1 consumes ~95GB of RAM and takes 23
minutes to compile, compared to GCC 12.1 which required only ~250KB of RAM and
only takes 1.8s.

File was compiled with command

    g++ -O3 -g -std=c++20 -c a-exploding_compilation_time.ii

There are no warnings or other output when compiling this file, it just takes
forever.

gcc -v reports:

    Using built-in specs.
    COLLECT_GCC=g++
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/lto-wrapper
    Target: x86_64-pc-linux-gnu
    Configured with: /build/gcc/src/gcc/configure
--enable-languages=ada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-bootstrap
--prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--with-build-config=bootstrap-lto --with-linker-hash-style=gnu
--with-system-zlib --enable-__cxa_atexit --enable-cet=auto
--enable-checking=release --enable-clocale=gnu --enable-default-pie
--enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object
--enable-libstdcxx-backtrace --enable-link-serialization=1
--enable-linker-build-id --enable-lto --enable-multilib --enable-plugin
--enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch
--disable-werror
    Thread model: posix
    Supported LTO compression algorithms: zlib zstd
    gcc version 13.1.1 20230429 (GCC)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-06-14 21:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-14 18:32 [Bug c++/110257] New: [13 Regression] Excessive compile time and memory consumption manuel.bergler at mvtec dot com
2023-06-14 18:36 ` [Bug c++/110257] " manuel.bergler at mvtec dot com
2023-06-14 18:38 ` manuel.bergler at mvtec dot com
2023-06-14 19:03 ` [Bug c++/110257] [13 Regression] Excessive compilation " pinskia at gcc dot gnu.org
2023-06-14 21:14 ` manuel.bergler at mvtec dot com
2023-06-14 21:17 ` pinskia at gcc dot gnu.org
2023-06-14 21:18 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).