From patchwork Mon Jul 26 09:33:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 59903 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]) by ozlabs.org (Postfix) with SMTP id 54843B70AB for ; Mon, 26 Jul 2010 19:34:12 +1000 (EST) Received: (qmail 4058 invoked by alias); 26 Jul 2010 09:34:10 -0000 Received: (qmail 4047 invoked by uid 22791); 26 Jul 2010 09:34:10 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, TW_CC, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Jul 2010 09:33:33 +0000 Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id o6Q9XV1e001143 for ; Mon, 26 Jul 2010 02:33:31 -0700 Received: from ewy9 (ewy9.prod.google.com [10.241.103.9]) by hpaq6.eem.corp.google.com with ESMTP id o6Q9XTc2011263 for ; Mon, 26 Jul 2010 02:33:30 -0700 Received: by ewy9 with SMTP id 9so905290ewy.36 for ; Mon, 26 Jul 2010 02:33:29 -0700 (PDT) Received: by 10.213.19.74 with SMTP id z10mr2808583eba.37.1280136809381; Mon, 26 Jul 2010 02:33:29 -0700 (PDT) Received: from coign.google.com (dhcp-172-28-249-136.lul.corp.google.com [172.28.249.136]) by mx.google.com with ESMTPS id v59sm5382579eeh.4.2010.07.26.02.33.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Jul 2010 02:33:28 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org Subject: [gccgo] Fix libgo RTEMS build Date: Mon, 26 Jul 2010 02:33:25 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 X-System-Of-Record: true X-IsSubscribed: yes 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 This patch from Vinu Rajashekhar fixes the RTEMS build of libgo after the garbage collection patches. Committed to gccgo branch. Ian diff -r b3c3c5c731e9 libgo/runtime/go-go.c --- a/libgo/runtime/go-go.c Fri Jul 23 13:33:20 2010 -0700 +++ b/libgo/runtime/go-go.c Mon Jul 26 02:31:26 2010 -0700 @@ -50,6 +50,10 @@ #define GO_SIG_START (SIGRTMIN + 1) #define GO_SIG_STOP (SIGRTMIN + 2) +#ifndef SA_RESTART + #define SA_RESTART 0 +#endif + /* A doubly linked list of the threads we have started. */ struct __go_thread_id @@ -416,7 +420,7 @@ with __go_thread_ids_lock held. */ void -__go_scanstacks (void (*scan) (int32_t, unsigned char *, int64_t)) +__go_scanstacks (void (*scan) (int32, unsigned char *, int64_t)) { pthread_t me; struct __go_thread_id *p;