From patchwork Sat Nov 20 01:38:46 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: 72341 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 269DAB70F1 for ; Sat, 20 Nov 2010 12:39:05 +1100 (EST) Received: (qmail 23178 invoked by alias); 20 Nov 2010 01:39:02 -0000 Received: (qmail 23112 invoked by uid 22791); 20 Nov 2010 01:39:01 -0000 X-SWARE-Spam-Status: No, hits=-2.2 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; Sat, 20 Nov 2010 01:38:55 +0000 Received: from kpbe18.cbf.corp.google.com (kpbe18.cbf.corp.google.com [172.25.105.82]) by smtp-out.google.com with ESMTP id oAK1cr7h016996 for ; Fri, 19 Nov 2010 17:38:53 -0800 Received: from yxf34 (yxf34.prod.google.com [10.190.2.98]) by kpbe18.cbf.corp.google.com with ESMTP id oAK1cpHV024822 for ; Fri, 19 Nov 2010 17:38:52 -0800 Received: by yxf34 with SMTP id 34so3314622yxf.33 for ; Fri, 19 Nov 2010 17:38:51 -0800 (PST) Received: by 10.100.43.15 with SMTP id q15mr2020053anq.97.1290217131641; Fri, 19 Nov 2010 17:38:51 -0800 (PST) Received: from coign.google.com ([67.218.104.238]) by mx.google.com with ESMTPS id i37sm2487815anh.34.2010.11.19.17.38.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Nov 2010 17:38:49 -0800 (PST) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: [gccgo] Make definition match declaration, part 2 Date: Fri, 19 Nov 2010 17:38:46 -0800 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 I misunderstood the bug report about making the definition match the declaration. This is another attempt at fixing the problem. Committed to gccgo branch. Ian diff -r 4b13f7379616 libgo/runtime/go-go.c --- a/libgo/runtime/go-go.c Fri Nov 19 15:57:09 2010 -0800 +++ b/libgo/runtime/go-go.c Fri Nov 19 17:36:56 2010 -0800 @@ -428,7 +428,7 @@ with __go_thread_ids_lock held. */ void -__go_scanstacks (void (*scan) (byte *, int64_t)) +__go_scanstacks (void (*scan) (byte *, int64)) { pthread_t me; struct __go_thread_id *p;