From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D086139A6049; Fri, 30 Apr 2021 08:38:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D086139A6049 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5) Date: Fri, 30 Apr 2021 08:38:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: iains 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: --- 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: Fri, 30 Apr 2021 08:38:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100340 --- Comment #7 from Iain Sandoe --- (In reply to Iain Sandoe from comment #6) > (In reply to Richard Biener from comment #5) > > Does it work when you use STAGE1_CFLAGS=3D"-O0" (I think clang defaults= to > > optimizing?). To rule out compare-debug issues also try > > --without-build-config > I am discussing with OSS folks at Apple whether this is an intentional > change (i.e to produce better optimised code) or an accidental one. If the result comes back "we intended to do this" then there are a couple of options. 1) ask them to implement some option to disable this (and we can trigger th= at option from -gtoggle) Which would mean that the production compiler had the advantage of the additional optimisation - but we could still prove that our code-gen was the same with/without debug. 2) We can implement (1) ourselves using the llas driver I wrote - which dri= ves the LLVM backend, but presents command line options like cctools (i.e. more like GAS). for now I guess we have to wait for a reply,=