From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ADDAB3858415; Thu, 11 Jan 2024 22:07:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADDAB3858415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705010833; bh=0iNd41KMxA7QbCQ8bm1oQjRRklqWlcDW0sPcFc5uYBk=; h=From:To:Subject:Date:From; b=TueVvdr0r5gNMLgxrJ/WeFKuxMtFgITuTIrH8cxQD+N2oNscRjMgZethB8fue0XaO q0wE63uMXmeA7lYTuAIyXRWkv59xFApBUH1TbylH13Sf8jGK42zXzYT8gFY2LTfoYo dKrvX08dYUWMf5+T9OMyU3YTBIvtObw3kzrHzCMg= From: "glaubitz at physik dot fu-berlin.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113341] New: Using GCC as the bootstrap compiler breaks LLVM on 32-bit PowerPC Date: Thu, 11 Jan 2024 22:07:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glaubitz at physik dot fu-berlin.de 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_file_loc bug_status bug_severity priority component assigned_to reporter cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113341 Bug ID: 113341 Summary: Using GCC as the bootstrap compiler breaks LLVM on 32-bit PowerPC Product: gcc Version: 13.2.1 URL: https://github.com/llvm/llvm-project/issues/72279 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: glaubitz at physik dot fu-berlin.de CC: jrtc27 at jrtc27 dot com, segher at gcc dot gnu.org, sjames at gcc dot gnu.org Target Milestone: --- Using GCC on 32-bit PowerPC as the bootstrap compiler to build LLVM leads to clang crashing during stage 2 with a backtrace. This does not happen when L= LVM is used as the bootstrap compiler. The backtrace that clang generates can be found in the LLVM bug report [1]. The problem was observed with LLVM 17, so I initially suspected a regressio= n in LLVM. I was able to bisect issue which lead to the following commit in LLVM: bc73ef0031b50f7443615fef614fb4ecaaa4bd11 is the first bad commit commit bc73ef0031b50f7443615fef614fb4ecaaa4bd11 Author: Richard Smith Date: Thu Mar 30 14:21:31 2023 -0700 PR60985: Fix merging of lambda closure types across modules. However, since the problem does not show when using LLVM as the bootstrap compiler instead of GCC, I'm suspecting that GCC is miscompiling the code. > [1] https://github.com/llvm/llvm-project/issues/72279=