From patchwork Mon Aug 12 12:07:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Clifton X-Patchwork-Id: 266511 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 8E0D62C00DD for ; Mon, 12 Aug 2013 22:11:30 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=FOInmj4BsAyrMCXg8bY76RcUFU0QB9vuiIaaXW3WzqCr6gcU53 G/qWWzL2YhOTn0J+gmYPH+YumDZ2Gx+Fcwka47aVWLYjpDv6/er55VZ8AF565utr wckc8du3htXWl0wjnxl38EzsQWqqhm8aureWoX8HVAo77S98Zmkku1EME= 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:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=5ikc7sdoyLWveYo0FK1NbUOc6cQ=; b=LOgsEfrSHNhbNGXJB5Wu 5JLlrQDX/fBVjTFcUPAzMN0XqVEfoAQn6FJU3xBoUO2uDfNvTNcA3mZc2ywYiYjP bP0xqMD1Oub/XkxxEt6bI9v4PNmQBo50cHP3H5kTFYvs/yljlKAQj/A3reoneLYy ZnOJqfcG4ytuhsZIdbeqZms= Received: (qmail 13587 invoked by alias); 12 Aug 2013 12:11:22 -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 13572 invoked by uid 89); 12 Aug 2013 12:11:21 -0000 X-Spam-SWARE-Status: No, score=-7.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 12 Aug 2013 12:11:21 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r7CCA98m002417 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Aug 2013 08:10:18 -0400 Received: from Cadeux.fritz.box.redhat.com (vpn1-7-8.ams2.redhat.com [10.36.7.8]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r7CC9xAE025266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 12 Aug 2013 08:10:06 -0400 From: Nick Clifton To: chertykov@gmail.com, aesok@post.ru, eric.weddington@atmel.com Cc: gcc-patches@gcc.gnu.org Subject: RFA: AVR: Support building AVR Linux targets Date: Mon, 12 Aug 2013 13:07:26 +0100 Message-ID: <871u5zqfi9.fsf@Cadeux.fritz.box> MIME-Version: 1.0 Hi Dennis, Hi Anatoly, Hi Eric, I have run into a small problem building GCC for an AVR Linux target - glibc-c.o is not being built. It turns out that the section handling "avr-*-*" in the config.gcc file is redefining tmake_file without allowing for the fact that t-glibc has already been added to it. The patch below is the obvious fix for this problem, but I have not committed it because it occurred to me that there might be some AVR specific reason for not including t-glibc. So - is the patch OK, or is there some other way of fixing the problem ? Cheers Nick gcc/ChangeLog 2013-08-12 Nick Clifton * config.gcc (avr-*-*): Allow for tmake_file not being empty. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 201658) +++ gcc/config.gcc (working copy) @@ -1001,7 +1001,7 @@ tm_file="${tm_file} ${cpu_type}/avrlibc.h" tm_defines="${tm_defines} WITH_AVRLIBC" fi - tmake_file="avr/t-avr avr/t-multilib" + tmake_file="${tmake_file} avr/t-avr avr/t-multilib" use_gcc_stdint=wrap extra_gcc_objs="driver-avr.o avr-devices.o" extra_objs="avr-devices.o avr-log.o"