From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 85A0B3858C60; Wed, 29 Sep 2021 21:04:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85A0B3858C60 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c Date: Wed, 29 Sep 2021 21:04:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2021 21:04:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102527 --- Comment #7 from Rainer Orth --- (In reply to Aldy Hernandez from comment #4) > Can it be reproduced on a cross? If so, could you post the .ii file with > your include file peculiarities? I haven't tried, but expect it should work, provided you run on a 32-bit ho= st and perhaps limit VM consumption. I expect that depending on the host OSes VM layout cc1plus may be able to use more of the 4 GB address space on one = OS than the other. That said, there's a weird problem: If I run a regular build, I get the `out of memory' error reported. Just adding -save-temps to the command line produces a couple of weird warnings/errors: /var/gcc/reghunt/master/gcc/config/i386/i386.md: In function =E2=80=98rtx_i= nsn* gen_split_495(rtx_insn*, rtx_def**)=E2=80=99: /var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this state= ment may fall through [-Werror=3Dimplicit-fallthrough=3D] 20130 | code =3D swap_condition (code); | ~~~~~~~~~~~~~~~^~~~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here 20133 | case GE: case GEU: | ^~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md: In function =E2=80=98rtx_i= nsn* gen_split_496(rtx_insn*, rtx_def**)=E2=80=99: /var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this state= ment may fall through [-Werror=3Dimplicit-fallthrough=3D] 20130 | code =3D swap_condition (code); | ~~~~~~~~~~~~~~~^~~~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here 20133 | case GE: case GEU: | ^~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md: In function =E2=80=98rtx_i= nsn* gen_split_497(rtx_insn*, rtx_def**)=E2=80=99: /var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this state= ment may fall through [-Werror=3Dimplicit-fallthrough=3D] 20130 | code =3D swap_condition (code); | ~~~~~~~~~~~~~~~^~~~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here 20133 | case GE: case GEU: | ^~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md: In function =E2=80=98rtx_i= nsn* gen_split_498(rtx_insn*, rtx_def**)=E2=80=99: /var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this state= ment may fall through [-Werror=3Dimplicit-fallthrough=3D] 20130 | code =3D swap_condition (code); | ~~~~~~~~~~~~~~~^~~~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here 20133 | case GE: case GEU: | ^~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md: In function =E2=80=98rtx_i= nsn* gen_split_499(rtx_insn*, rtx_def**)=E2=80=99: /var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this state= ment may fall through [-Werror=3Dimplicit-fallthrough=3D] 20130 | code =3D swap_condition (code); | ~~~~~~~~~~~~~~~^~~~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here 20133 | case GE: case GEU: | ^~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md: In function =E2=80=98rtx_i= nsn* gen_split_500(rtx_insn*, rtx_def**)=E2=80=99: /var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this state= ment may fall through [-Werror=3Dimplicit-fallthrough=3D] 20130 | code =3D swap_condition (code); | ~~~~~~~~~~~~~~~^~~~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here 20133 | case GE: case GEU: | ^~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md: In function =E2=80=98rtx_i= nsn* gen_split_501(rtx_insn*, rtx_def**)=E2=80=99: /var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this state= ment may fall through [-Werror=3Dimplicit-fallthrough=3D] 20130 | code =3D swap_condition (code); | ~~~~~~~~~~~~~~~^~~~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here 20133 | case GE: case GEU: | ^~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md: In function =E2=80=98rtx_i= nsn* gen_split_502(rtx_insn*, rtx_def**)=E2=80=99: /var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this state= ment may fall through [-Werror=3Dimplicit-fallthrough=3D] 20130 | code =3D swap_condition (code); | ~~~~~~~~~~~~~~~^~~~~~ /var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here 20133 | case GE: case GEU: | ^~~~ /var/gcc/reghunt/master/gcc/config/i386/sse.md: In function =E2=80=98rtx_in= sn* gen_split_2186(rtx_insn*, rtx_def**)=E2=80=99: /var/gcc/reghunt/master/gcc/config/i386/sse.md:18256:19: error: this statem= ent may fall through [-Werror=3Dimplicit-fallthrough=3D] 18256 | operands[1] =3D tmp; | ~~~~~~~~~~~~^~~~~ /var/gcc/reghunt/master/gcc/config/i386/sse.md:18258:5: note: here 18258 | case 32: | ^~~~ /var/gcc/reghunt/master/gcc/config/i386/sse.md: In function =E2=80=98rtx_in= sn* gen_split_2187(rtx_insn*, rtx_def**)=E2=80=99: /var/gcc/reghunt/master/gcc/config/i386/sse.md:18256:19: error: this statem= ent may fall through [-Werror=3Dimplicit-fallthrough=3D] 18256 | operands[1] =3D tmp; | ~~~~~~~~~~~~^~~~~ /var/gcc/reghunt/master/gcc/config/i386/sse.md:18258:5: note: here 18258 | case 32: | ^~~~ and (if adding -Wno-error to avoid that) while cc1plus still consumes in ex= cess of 3 GB VM space, the compilation finally succeeds. I'm attaching the preprocessed output nonetheless; maybe it's still helpful= .=