From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 338D03858D29; Sat, 25 May 2024 14:49:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 338D03858D29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716648596; bh=iooQXGsJNo0rvF63bNnVN+yeKrm/NshTR+n2HkZCAAA=; h=From:To:Subject:Date:From; b=b99BZyijqeAaC9+h2wxAczg9EgJBygj3ipDqyNtwsW4NeSSQmvrF6eeqYKlx84F3d BIfUAt3liBm148CGKovwb+KfsZttEPRf6sUa5Ber+J+kFiuWOjZG3IEzhoQXwViKQC NkwNqu/Wc0IwDzAOn29Hqvx6H0VgKrqbfWa2J15k= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/115227] New: [15 Regression] i686-linux fails frequently with cc1: out of memory allocating x bytes after a total of ~4GB Date: Sat, 25 May 2024 14:49:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115227 Bug ID: 115227 Summary: [15 Regression] i686-linux fails frequently with cc1: out of memory allocating x bytes after a total of ~4GB Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Created attachment 58286 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58286&action=3Dedit bug.c.c.xz Initially noticed on libepoxy, doxygen, llvm, p11-kit. They all fail to bui= ld by 32-bit gcc-15. The symptoms are similar: 4GB limit is hit and `gcc` fail= s on allocation. Attached preprocessed and compressed example of libepoxy: $ gcc-15 -std=3Dgnu99 -fno-strict-aliasing -fvisibility=3Dhidden -c bu= g.c.c -o bug.o -O2 cc1: out of memory allocating 65536 bytes after a total of 3774660608 b= ytes For comparison gcc-13 is able to survive: $ gcc-13 -std=3Dgnu99 -fno-strict-aliasing -fvisibility=3Dhidden -c bu= g.c.c -o bug.o -O2 $ gcc-15 -v Using built-in specs. COLLECT_GCC=3D/<>/gcc-15.0.0/bin/gcc COLLECT_LTO_WRAPPER=3D/<>/gcc-15.0.0/libexec/gcc/i686-unknown-linux-gn= u/15.0.0/lto-wrapper Target: i686-unknown-linux-gnu Configured with: ../source/configure --prefix=3D/<>/gcc-15.0.0 --with-gmp-include=3D/<>/gmp-6.3.0-dev/include --with-gmp-lib=3D/<>/gmp-6.3.0/lib --with-mpfr-include=3D/<>/mpfr-4.2.1-dev/include --with-mpfr-lib=3D/<>/mpfr-4.2.1/lib --with-mpc=3D/<>/libmpc-1.3.1 --with-native-system-header-dir=3D/<>/glibc-2.39-52-dev/include --with-build-sysroot=3D/ --with-gxx-include-dir=3D/<>/gcc-15.0.0/include/c++/15.0.0/ --program-prefix=3D --enable-lto --disable-libstdcxx-pch --without-included-gettext --with-system-zlib --enable-checking=3Drelease --enable-static --enable-languages=3Dc,c++ --disable-multilib --enable-plug= in --disable-libcc1 --with-isl=3D/<>/isl-0.20 --disable-bootstrap --with-arch=3Di686 --build=3Di686-unknown-linux-gnu --host=3Di686-unknown-l= inux-gnu --target=3Di686-unknown-linux-gnu Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 99999999 (experimental) (GCC)=