From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114170 invoked by alias); 2 Dec 2017 22:53:08 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 114161 invoked by uid 89); 2 Dec 2017 22:53:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Feel, pit X-HELO: gate.crashing.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 02 Dec 2017 22:53:06 +0000 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id vB2Mr1wh026386; Sat, 2 Dec 2017 16:53:02 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id vB2Mr0Ub026385; Sat, 2 Dec 2017 16:53:00 -0600 Date: Sat, 02 Dec 2017 22:53:00 -0000 From: Segher Boessenkool To: David Edelsohn Cc: GCC Patches , Andreas Schwab Subject: Re: [PATCH] rs6000: Set rs6000_cpu correctly (PR43871) Message-ID: <20171202225257.GP10515@gate.crashing.org> References: <87y3mluffz.fsf@linux-m68k.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00099.txt.bz2 On Sat, Dec 02, 2017 at 05:41:20PM -0500, David Edelsohn wrote: > On Sat, Dec 2, 2017 at 1:56 PM, Andreas Schwab wrote: > > configured by ../configure, generated by GNU Autoconf 2.64, > > with options " '--prefix=/usr' '--build=powerpc64-suse-linux' '--enable-checking=release' '--enable-shared' 'CFLAGS=-O2 -g' 'CXXFLAGS=-O2 -g' '--with-cpu-64=power4' '--enable-secureplt' '--with-long-double-128' '--with-system-zlib' '--disable-bootstrap' 'build_alias=powerpc64-suse-linux' '--enable-languages=c,lto'" > > > > configure:3475: /daten/gcc/test/Build/./gcc/xgcc -B/daten/gcc/test/Build/./gcc/ -B/usr/powerpc64-suse-linux/bin/ -B/usr/powerpc64-suse-linux/lib/ -isystem /usr/powerpc64-suse-linux/include -isystem /usr/powerpc64-suse-linux/sys-include -m32 -o conftest -O2 -g conftest.c >&5 > > cc1: internal compiler error: in rs6000_option_override_internal, at config/rs6000/rs6000.c:4187 > > 0x10a8fdab rs6000_option_override_internal > > ../../gcc/config/rs6000/rs6000.c:4187 > > 0x1017460b process_options > > ../../gcc/toplev.c:1234 > > 0x1017460b do_compile > > ../../gcc/toplev.c:2015 > > > This broke bootstrap on AIX similarly. It was too good to be true, a simple two-liner would solve this, heh. I think I know what to do (needs testing, will be tomorrow at earliest); but deeper investigation shows we use rs6000_cpu in quite a few places where we mean rs6000_tune (which doesn't exist). I don't know how deep this pit is. Feel free to revert my patch (if it takes too long to fix this, I'll revert it myself). Sorry :-/ Segher