From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9923 invoked by alias); 3 Feb 2015 22:36:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9878 invoked by uid 48); 3 Feb 2015 22:36:43 -0000 From: "meissner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64205] [5 Regression] powerpc64-linux --with-cpu=G5 bootstrap failure Date: Tue, 03 Feb 2015 22:36:00 -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: 5.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: meissner at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg00285.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64205 --- Comment #4 from Michael Meissner --- Is -mcpu=power7 -mno-hard-dfp really a reasonable option? I built a toolchain using --with-cpu=power5 from subversion id 219607 on a powerpc64 linux system, and the system bootstrapped. If I compile the code that Peter mentioned using -m32 -O2 -fPIC -S foo01.c -mlong-double-128 -mno-minimal-toc -g -fbuilding-libgcc -fno-stack-protector -g -mcpu=power5, it compiles fine. As seger mentions, -mlra fixes this (but there are still problems with -mlra). It does fail if you enable the stfiwx instruction (added in power7), but disable DFP. How many people do this? I'm not sure this is a representation of the original bug. I suspect if you changed TARGET_NO_SDMODE_STACK in rs6000.h to eliminate the TARGET_DFP test it should work. #define TARGET_NO_SDMODE_STACK (TARGET_LFIWZX && TARGET_STFIWX)