From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3031 invoked by alias); 27 Jul 2017 05:28:41 -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 3005 invoked by uid 89); 27 Jul 2017 05:28:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-19.2 required=5.0 tests=AWL,BAYES_00,FOREIGN_BODY,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS,T_FILL_THIS_FORM_SHORT autolearn=ham version=3.3.2 spammy=H*M:4b7e, air 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; Thu, 27 Jul 2017 05:28:37 +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 1dabLe-0005He-Qs; Thu, 27 Jul 2017 07:28:34 +0200 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 1dabLe-0001DL-Hp; Thu, 27 Jul 2017 07:28:34 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id C733D2A001D; Thu, 27 Jul 2017 07:28:42 +0200 (CEST) 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 67zu_WbyQ3b4; Thu, 27 Jul 2017 07:28:40 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 92B6C2A004F; Thu, 27 Jul 2017 07:28:40 +0200 (CEST) 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 UKMxAmJ8-89P; Thu, 27 Jul 2017 07:28:40 +0200 (CEST) Received: from [192.168.96.129] (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 789382A001D; Thu, 27 Jul 2017 07:28:40 +0200 (CEST) Subject: Re: [PATCH] [PowerPC/RTEMS] Add 64-bit support using ELFv2 ABI To: Segher Boessenkool Cc: gcc-patches@gcc.gnu.org References: <20170725122521.10857-1-sebastian.huber@embedded-brains.de> <20170726175619.GP13471@gate.crashing.org> From: Sebastian Huber Message-ID: <4518ab10-1391-5d3b-4b7e-af1e502d0919@embedded-brains.de> Date: Thu, 27 Jul 2017 05:28:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170726175619.GP13471@gate.crashing.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg01745.txt.bz2 On 26/07/17 19:56, Segher Boessenkool wrote: > On Tue, Jul 25, 2017 at 02:25:21PM +0200, Sebastian Huber wrote: >> Add 64-bit support for RTEMS using the ELFv2 ABI with 64-bit long >> double. >> >> diff --git a/gcc/config.gcc b/gcc/config.gcc >> index 2ae0218b5fc..aab7f65c1df 100644 >> --- a/gcc/config.gcc >> +++ b/gcc/config.gcc >> @@ -2424,7 +2424,7 @@ powerpc-*-rtems*spe*) >> tmake_file=3D"${tmake_file} powerpcspe/t-fprules powerpcspe/t-rtems p= owerpcspe/t-ppccomm" >> ;; >> powerpc-*-rtems*) >> - tm_file=3D"${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h = rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h" >> + tm_file=3D"rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h freebsd-spec.= h newlib-stdint.h rs6000/sysv4.h rs6000/rtems.h rtems.h" > This deletes eabi.h and I don't see you add all its definitions to > rtems.h directly (NAME__MAIN etc.) Is this on purpose? Yes, I always wondered why GCC added the __eabi() call to main() out of=20 thin air. In general, there is no main() function in RTEMS. Instead, you=20 can statically configure initialization threads. We call __eabi() in the=20 low-level startup code, e.g. https://git.rtems.org/rtems/tree/c/src/lib/libbsp/powerpc/qoriq/start/start= .S#n144 --=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.