From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48776 invoked by alias); 16 Dec 2015 04:50:09 -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 48759 invoked by uid 89); 16 Dec 2015 04:50:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: DUB004-OMC3S13.hotmail.com Received: from dub004-omc3s13.hotmail.com (HELO DUB004-OMC3S13.hotmail.com) (157.55.2.22) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA256 encrypted) ESMTPS; Wed, 16 Dec 2015 04:50:07 +0000 Received: from emea01-am1-obe.outbound.protection.outlook.com ([157.55.2.7]) by DUB004-OMC3S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 15 Dec 2015 20:50:03 -0800 Received: from HE1PR07MB0905.eurprd07.prod.outlook.com (10.162.26.12) by HE1PR07MB0907.eurprd07.prod.outlook.com (10.162.26.14) with Microsoft SMTP Server (TLS) id 15.1.355.16; Wed, 16 Dec 2015 04:50:02 +0000 Received: from HE1PR07MB0905.eurprd07.prod.outlook.com ([10.162.26.12]) by HE1PR07MB0905.eurprd07.prod.outlook.com ([10.162.26.12]) with mapi id 15.01.0355.012; Wed, 16 Dec 2015 04:50:02 +0000 From: Bernd Edlinger To: Jeff Law , "gcc-patches@gcc.gnu.org" CC: Steve Ellcey , Ian Lance Taylor Subject: Re: [PATCH, IA64] Fix building a bare-metal ia64 compiler Date: Wed, 16 Dec 2015 04:50:00 -0000 Message-ID: References: <56708C41.1040805@redhat.com> In-Reply-To: <56708C41.1040805@redhat.com> authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=hotmail.de; x-ms-exchange-messagesentrepresentingtype: 1 x-microsoft-exchange-diagnostics: 1;HE1PR07MB0907;23:7qqK4NdzmzbMkjHSjEAD2SY+4MQtJeNCWpA4JVslXRrbTzpvUHojkc/958dzYIIlEsbwv/NRUVm8azY8Vshmll9lOfwb5NGMZmeHG0CDGLmn72gs5G1NBaRJJpd1FnRnPf6cje0OjyEFIAgv/QtHod+ef0gMXW3NpyLTnke/PmSqtNtMmWFQlIjFZUQKBNdd4RreFSppEmqG0kZh1ZMXAw==;5:NFy3agKrA07XDQbVSTMuGOjx0ajHw+Kri0Xq3SlGT2IGQHwKiZAAACR8+/bj3scu1fvv4WRDy0/UNxzxMuuvoDvObLUVOAbcBv++N0GM043ayb7Tcu7/fS12MsgSc5tutAiwUDjANuPm+m6BLyHUkg==;24:qOMF9OcKrZCRvdJF9WrnPq2Y+EH3RzYZW8Sc12rBMOPMb1vAolXsM6fVB4gmhc4DmOW64j02ftSxTcB+PdbwMLo4ohlYW6/shdqnyci8mP4= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR07MB0907; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015012)(82015046);SRVR:HE1PR07MB0907;BCL:0;PCL:0;RULEID:;SRVR:HE1PR07MB0907; x-forefront-prvs: 0792DBEAD0 x-forefront-antispam-report: SFV:NSPM;SFS:(7070004)(98900002);DIR:OUT;SFP:1901;SCL:1;SRVR:HE1PR07MB0907;H:HE1PR07MB0905.eurprd07.prod.outlook.com;FPR:;SPF:None;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: <877E980084C68842842F06915736C146@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sct-15-1-318-9-msonline-outlook-efc2f.templateTenant X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Dec 2015 04:50:02.1409 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB0907 X-SW-Source: 2015-12/txt/msg01551.txt.bz2 Hi, On 15.12.2015 22:55, Jeff Law wrote: > On 12/15/2015 02:13 PM, Bernd Edlinger wrote: >> Hi, >> >> due to recent discussion on the basic asm, and the special handling=20 >> of ASM_INPUT in ia64, I tried to build a bare-metal cross-compiler=20 >> for ia64, but that did not work, because it seems to be impossible to=20 >> build it without having a stdlib.h. >> >> With the attached patch, I was finally able to build the cross=20 >> compiler, by declaring abort in the way as it is done already in many=20 >> other places at libgcc. >> >> In case someone wants to know, working configure options are as follows: >> >> ../binutils-2.25.1/configure --prefix=3D../ia64-elf=20 >> --target=3Dia64-unknown-elf >> >> ../gcc-trunk/configure --prefix=3D../ia64-elf --target=3Dia64-unknown-el= f=20 >> --enable-languages=3Dc --with-gnu-as --disable-threads=20 >> --disable-sjlj-exceptions --disable-libssp --disable-libquadmath >> >> >> I have successfully built a bare-metal cross compiler with this patch. >> Is it OK for trunk? > I wouldn't call it "many" places in libgcc. I just see one --=20 > fp-bit.c and that one is only to give "sane" handle to extended mode=20 > floating point. there is also unwind-arm-common.inc, which is included by=20 ./config/arm/unwind-arm.h and ./config/c6x/unwind-c6x.h, so yes, not many, only few. > For ia64-elf ISTM this header should be coming from newlib but I don't want to use newlib or glibc, I just wanted to see if my=20 other patch breaks something. Bernd.