From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 73F2D3857C4F; Wed, 4 Nov 2020 17:06:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73F2D3857C4F From: "kranti.rkiran at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/97717] New: compilation with -O(1/2/3) flag failed while -O0 succeeds Date: Wed, 04 Nov 2020 17:06:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kranti.rkiran at gmail dot com 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 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 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, 04 Nov 2020 17:06:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97717 Bug ID: 97717 Summary: compilation with -O(1/2/3) flag failed while -O0 succeeds Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: kranti.rkiran at gmail dot com Target Milestone: --- GCC version: 9.3.0 System Info:=20 System: Host: T-RAGOLI-X1Yoga Kernel: 4.4.0-18362-Microsoft x86_64 bits:= 64=20 Console: tty 2 Distro: Ubuntu 20.04 LTS (Focal Fossa)=20 CPU: Topology: Dual Core model: Intel Core i7-6600U bits: 64 type: MT= MCP=20 L2 cache: 256 KiB=20 Speed: 2808 MHz min/max: N/A Core speeds (MHz): 1: 2808 2: 2808 = 3: 2808 4: 2808=20 (The machine uses WSL-2) Compiling the source code with optimization fags (-O1/-O2/-O3) throws a compiler segfault. Command: g++ -O3 test.cpp g++: internal compiler error: Segmentation fault signal terminated program cc1plus The compilation using 'g++ test.cpp' succeeds.=