From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60433 invoked by alias); 20 Jan 2017 07:35:32 -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 60330 invoked by uid 89); 20 Jan 2017 07:35:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No 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; Fri, 20 Jan 2017 07:35:20 +0000 Received: from [88.198.220.131] (helo=sslproxy02.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 1cUTjA-0004Ok-Hd; Fri, 20 Jan 2017 08:35:16 +0100 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy02.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cUTjA-0005Eb-9Q; Fri, 20 Jan 2017 08:35:16 +0100 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id AA4092A0975; Fri, 20 Jan 2017 08:35:20 +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 z4uPOutg_jg2; Fri, 20 Jan 2017 08:35:20 +0100 (CET) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 49AAB2A180C; Fri, 20 Jan 2017 08:35:20 +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 eeBfHuU8EMXY; Fri, 20 Jan 2017 08:35:20 +0100 (CET) Received: from [192.168.96.129] (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 329CA2A0975; Fri, 20 Jan 2017 08:35:20 +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> Cc: GCC Development From: Sebastian Huber Message-ID: <5881BDB2.3050505@embedded-brains.de> Date: Fri, 20 Jan 2017 07:35: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: <20170120010404.GW30284@gate.crashing.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00178.txt.bz2 Hello Segher, On 20/01/17 02:04, Segher Boessenkool wrote: > Hi, > > On Thu, Jan 19, 2017 at 01:41:33PM +0100, Sebastian Huber wrote: >> conftest.c:16:1: error: unrecognizable insn: >> } >> ^ >> (insn/f 22 21 23 2 (parallel [ >> (set (reg/f:DI 1 1) >> (plus:SI (reg/f:DI 1 1) >> (const_int 16 [0x10]))) >> (set (mem:BLK (reg/f:DI 1 1) [0 A8]) >> (const_int 0 [0])) >> (set (mem:BLK (reg/f:DI 1 1) [0 A8]) >> (const_int 0 [0])) >> ]) "conftest.c":16 -1 >> (expr_list:REG_CFA_DEF_CFA (reg/f:DI 1 1) >> (nil))) > This is stack_restore_tie, which requires TARGET_32BIT. > > It currently is only generated from rs6000_emit_stack_reset: > > /* This blockage is needed so that sched doesn't decide to move > the sp change before the register restores. */ > if (DEFAULT_ABI =3D=3D ABI_V4 > || (TARGET_SPE_ABI > && info->spe_64bit_regs_used !=3D 0 > && info->first_gp_reg_save !=3D 32)) > return emit_insn (gen_stack_restore_tie (updt_reg_rtx, frame_reg_rtx, > GEN_INT (frame_off))); > > so you seem to have 64-bit ABI_V4? I wonder how well tested that is, > you are likely to run into more problems. Either stack_restore_tie or > the above code will need a tweak. thanks for your help. I would had a hard time to figure this out myself. I am flexible in terms of the ABI choice for the 64-bit PowerPC. I guess=20 the ABI_ELFv2 is the way to go? I had to provide SUBSUBTARGET_OVERRIDE_OPTIONS in rtems.h (in=20 config/rs6000/) to set the ABI. The sysv4.h doesn't care about=20 -mabi=3Delfv2. There seems to be some copy and paste in linux64.h and=20 freebsd64.h for their SUBSUBTARGET_OVERRIDE_OPTIONS. Maybe the common=20 stuff should move to sysv4.h? --=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=E4ftliche Mitteilung im Sinne des EHUG.