From patchwork Fri Apr 17 14:02:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 462054 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 23DF614012C for ; Sat, 18 Apr 2015 00:03:09 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=wXdyVVTI; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; q=dns; s= default; b=YET6w5VCsTeH+mFPvfotOi3GHwf0uY+2w6Wrlpl3C2A5fFJTAy5Zr iycYiMxSR5/4CtrMGIrEGjQSOU6HldSoFp0Z84w5t8YX5WoFSTWws179upqy+doc GSxVRNDrViEwjjLET2BM8Fzl17LA6saSiBMyo2+/+BkdawgIwGpDLg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s=default; bh=4jGaM/KN4o9n6gGUI8BemwNa8+A=; b=wXdyVVTIyPQW6xZ29xeq6GdVuDYd PqfGFJy92wfOpq0X5PiVCtILF6usrthjREwcJ23bI3Du75Qu9iDr3FOpSOUJ66Of K2iiqUeYAySENJNHp6UHYJ79G0fJ00+0sHRaW/dEXpAnz295YkAqWcTAAIOdMNRp VQckF2vR1axDJrU= Received: (qmail 55331 invoked by alias); 17 Apr 2015 14:03:00 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 55319 invoked by uid 89); 17 Apr 2015 14:02:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.221) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 17 Apr 2015 14:02:57 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT3ol15ykJcYwTPbBBR62PQx1xqvTHw== X-RZG-CLASS-ID: mo00 Received: from [192.168.0.22] (ip5b43a95f.dynamic.kabel-deutschland.de [91.67.169.95]) by smtp.strato.de (RZmta 37.5 DYNA|AUTH) with ESMTPSA id d01764r3HE2qQ5f (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 17 Apr 2015 16:02:52 +0200 (CEST) Message-ID: <5531128C.3010709@gjlay.de> Date: Fri, 17 Apr 2015 16:02:52 +0200 From: Georg-Johann Lay User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "Sivanupandi, Pitchumani" , Denis Chertykov CC: GCC Patches , Joerg Wunsch , "Selvaraj, Senthil_Kumar" Subject: [patch, avr, installed] ad PR65296: Adjust specs to new avr-libc layout as of #44574 References: <54F4BCA1.7080707@gjlay.de> <20150303132144.GC24277@atmel.com> <54FDC417.1000008@gjlay.de> <5523CEDE.1060204@gjlay.de> <55251030.1070305@gjlay.de> <55266135.20003@gjlay.de> In-Reply-To: X-IsSubscribed: yes ...I went ahead and installed as http://gcc.gnu.org/r222179 It will be backported to 5.2 as soon as 5.1 is open for patches again (assuming RM won't approve this one for 5.1). As far as I can tell, all works fine now, even with install-paths containing spaces and LTO. Johann 2015-04-17 Sivanupandi Pitchumani PR target/65296 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust to new AVR-LibC file layout (bug #44574). (*avrlibc_devicelib): Same. * config/avr/avr-mcus.def: Adjust comments. * config/avr/avr.opt (nodevicelib): Adjust help. Index: config/avr/gen-avr-mmcu-specs.c =================================================================== --- config/avr/gen-avr-mmcu-specs.c (revision 222178) +++ config/avr/gen-avr-mmcu-specs.c (revision 222179) @@ -171,11 +171,11 @@ bool is_arch = NULL == mcu->macro; if (is_device) { fprintf (f, "*avrlibc_startfile:\n"); - fprintf (f, "\tdev/%s/crt1.o%%s", mcu->name); + fprintf (f, "\tcrt%s.o%%s", mcu->name); fprintf (f, "\n\n"); fprintf (f, "*avrlibc_devicelib:\n"); - fprintf (f, "\t%%{!nodevicelib:dev/%s/libdev.a%%s}", mcu->name); + fprintf (f, "\t%%{!nodevicelib:-l%s}", mcu->name); fprintf (f, "\n\n"); } #endif // WITH_AVRLIBC Index: config/avr/avr-mcus.def =================================================================== --- config/avr/avr-mcus.def (revision 222178) +++ config/avr/avr-mcus.def (revision 222179) @@ -44,8 +44,8 @@ Before including this file, define a mac used by DRIVER_SELF_SPECS and gen-avr-mmcu-specs.c for - the name of the device specific specs file in -specs=device-specs/spec- - - the name of the startup file dev//crt1.o - - the name of the device library dev//libdev.a + - the name of the startup file crt.o + - to link the device library by means of -l ARCH Specifies the multilib variant together with AVR_SHORT_SP Index: config/avr/avr.opt =================================================================== --- config/avr/avr.opt (revision 222178) +++ config/avr/avr.opt (revision 222179) @@ -97,4 +97,4 @@ Allow to use truncation instead of round nodevicelib Driver Target Report RejectNegative -Do not link against the device-specific library libdev.a +Do not link against the device-specific library lib.a