From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14277 invoked by alias); 30 Jan 2017 12:13:33 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 14246 invoked by uid 89); 30 Jan 2017 12:13:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=6.3 required=5.0 tests=AWL,BAYES_50,FOREIGN_BODY,RCVD_IN_DNSWL_NONE,SPF_PASS,T_FILL_THIS_FORM_SHORT autolearn=no version=3.3.2 spammy=diese, keine, mitteilung, 4109 X-HELO: dedi548.your-server.de Received: from dedi548.your-server.de (HELO dedi548.your-server.de) (85.10.215.148) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Jan 2017 12:13:21 +0000 Received: from [88.198.220.130] (helo=sslproxy01.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1cYApf-0007Jh-4Z; Mon, 30 Jan 2017 13:13:15 +0100 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy01.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cYApe-0001q0-RI; Mon, 30 Jan 2017 13:13:15 +0100 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 2744B2A0A9C; Mon, 30 Jan 2017 13:13:31 +0100 (CET) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id bzZ_PYA3DvOU; Mon, 30 Jan 2017 13:13:30 +0100 (CET) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 9AC5C2A180F; Mon, 30 Jan 2017 13:13:30 +0100 (CET) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id OxJBhkpDKXdl; Mon, 30 Jan 2017 13:13:30 +0100 (CET) Received: from [192.168.96.129] (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 7F7802A0A9C; Mon, 30 Jan 2017 13:13:30 +0100 (CET) Subject: Re: How to configure a bi-arch PowerPC GCC? To: Segher Boessenkool References: <5880B3FD.2030605@embedded-brains.de> <20170120010404.GW30284@gate.crashing.org> <5881BDB2.3050505@embedded-brains.de> <20170121004635.GB30284@gate.crashing.org> <5885BC78.8010804@embedded-brains.de> <20170123171823.GF30284@gate.crashing.org> <58889605.4060501@embedded-brains.de> <20170125175520.GP30284@gate.crashing.org> <588F179B.70402@embedded-brains.de> Cc: GCC Development From: Sebastian Huber Message-ID: <588F2DD9.6080603@embedded-brains.de> Date: Mon, 30 Jan 2017 12:13:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <588F179B.70402@embedded-brains.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00259.txt.bz2 On 30/01/17 11:38, Sebastian Huber wrote: > On 25/01/17 18:55, Segher Boessenkool wrote: >> On Wed, Jan 25, 2017 at 01:11:49PM +0100, Sebastian Huber wrote: >>> >I still get a lot of ICEs with the attached two patches (examples): >>> >/home/EB/sebastian_h/archive/gcc-git/libgcc/libgcc2.c: In function >>> >'__multc3': >>> >/home/EB/sebastian_h/archive/gcc-git/libgcc/libgcc2.c:2035:1: error: >>> >unrecognizable insn: >>> > } >>> > ^ >>> >(insn 59 58 60 2 (set (reg:CCFP 219) >>> > (compare:CCFP (reg/v:TF 193 [ x ]) >>> > (reg/v:TF 193 [ x ]))) >>> >"/home/EB/sebastian_h/archive/gcc-git/libgcc/libgcc2.c":1990 -1 >>> > (nil)) >>> >/home/EB/sebastian_h/archive/gcc-git/libgcc/libgcc2.c:2035:1: internal >>> >compiler error: in extract_insn, at recog.c:2311 >> The IEEE128 code almost certainly has some bugs on non-Linux=20 >> configurations. >> You could try debugging it, or you could avoid it (for now) by e.g.=20 >> making >> long double the same as double. >> > > If I set rs6000_long_double_type_size to 64, then I can build all=20 > libgcc multilibs including the one for -m64 -mcpu=3De6500. I am a bit=20 > surprised that the GCC support for 64-bit PowerPC is so extremely=20 > Linux-dependent. I guess that I have to figure out all the magic=20 > configuration bits to get everything set up like it is on Linux. It=20 > would be nice if the working Linux configuration bits are the default. > > With rs6000_long_double_type_size =3D=3D 128, then I get the attached ICE= s. > > I would be glad to get some advice how I can debug them, since I have=20 > no idea how the compiler works actually if it comes to code generation. > The compiler build shows these warnings: /home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/rs6000.md:11023:1: w= arning:=20 source missing a mode? /home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/rs6000.md:11034:1: w= arning:=20 source missing a mode? /home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/rs6000.md:11034:1: w= arning:=20 source missing a mode? /home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/rs6000.md:11050:1: w= arning:=20 source missing a mode? /home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/rs6000.md:11050:1: w= arning:=20 source missing a mode? /home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/rs6000.md:11060:1: w= arning:=20 source missing a mode? /home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/rs6000.md:11060:1: w= arning:=20 source missing a mode? /home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/rs6000.md:11998:1: w= arning:=20 operand 1 missing mode? /home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/spe.md:3467:1:=20 warning: operand 1 missing mode? /home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/spe.md:3467:1:=20 warning: operand 2 missing mode? Statistics for recog: Number of decisions: 15193 longest path: 604 (code: 593) longest backtrack: 43 (code: 1619) Statistics for split_insns: Number of decisions: 2991 longest path: 53 (code: 576) longest backtrack: 18 (code: 574) Statistics for peephole2_insns: Number of decisions: 267 longest path: 47 (code: 7) longest backtrack: 3 (code: 26) Is this something to worry about? --=20 Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesch=C3=A4ftliche Mitteilung im Sinne des EHUG.