From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7542 invoked by alias); 28 Jan 2014 19:15:17 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 7521 invoked by uid 89); 28 Jan 2014 19:15:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f46.google.com Received: from mail-oa0-f46.google.com (HELO mail-oa0-f46.google.com) (209.85.219.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 28 Jan 2014 19:15:13 +0000 Received: by mail-oa0-f46.google.com with SMTP id n16so910147oag.5 for ; Tue, 28 Jan 2014 11:15:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=yAlqHly5fyd+7uWW6KUPmTbnwE7lFo1UPuC52Vi6VPk=; b=Rfhg2i4maBZGogYmGbJtpBTSKSZfADzBuFdeQP3kRmBQDNaQZsdspSk5iMiSdGTE7z 8gXFTifUMMkFG33miY3i7o4rcxJbhUz2xXeLzM9QjGD4LIGtnxtF7KJvNPCIOxaIf/// ek0T0v4pwvyHB0oqTYhr9jfhIyEpnjS9nqt6OxGWmeu8R1PGE+HUVsqlat9RVi9hz1k+ MWsQ5EpQRt69u+Y3FbH0CSbsxfzxCoZot+e2epsuzeXV80HZJo617q6vu/pa+XtXABx7 4DtFsH+/cPrRENXMGw4t8HsGrGdNQx4UINi3o+/YlNgjpGuYUcxkqjfgpdGFPMGgHgZZ 6WNQ== X-Gm-Message-State: ALoCoQnaPuJJgf9eLWiBhZc3PKn9QjpgkWjqDqCobbY/0qEz8mksYntQCUZTWxcjX9BaIvU4RgO32CCa+OMFyiTVBBe1q1gclCy5cLt6NKN0RwBzMsKXmYwlXPP63uRmtlqMQArMiafgcHRTN687g8khgT56fBdwju0qJKs9IZtADSt+6BKIqXhjyUvFYnnLRQXozq1WHJBU MIME-Version: 1.0 X-Received: by 10.60.69.138 with SMTP id e10mr255839oeu.75.1390936511577; Tue, 28 Jan 2014 11:15:11 -0800 (PST) Received: by 10.60.39.2 with HTTP; Tue, 28 Jan 2014 11:15:11 -0800 (PST) In-Reply-To: <52E7D186.4030108@embedded-brains.de> References: <52E7D186.4030108@embedded-brains.de> Date: Tue, 28 Jan 2014 19:15:00 -0000 Message-ID: Subject: Re: ColdFire and Thread-Local Storage From: Ian Lance Taylor To: Sebastian Huber Cc: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00116.txt.bz2 On Tue, Jan 28, 2014 at 7:49 AM, Sebastian Huber wrote: > > it seems GCC uses this ColdFire TLS ABI: > > https://lists.debian.org/debian-68k/2007/11/msg00071.html > > Here we have a function > > void *__m68k_read_tp(void) > > which must return the thread pointer in register a0. > > I have to implement this function. Is there a way to instruct GCC to return > the value in register a0 instead of d0 or do I have to use assembler to > implement this function? I believe that on m68k GNU/Linux a function that returns a pointer will normally return the value in a0. Ian