From patchwork Tue Feb 28 20:57:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 143542 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 0C075B6F9D for ; Wed, 29 Feb 2012 07:57:34 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1331067455; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Received-SPF:Received:Received:Received:Received:From:To:Subject: Date:Message-ID:User-Agent:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=GtJaqd8zwHlfh8qRVVwH rU0sv7Q=; b=GzxSQDOr+czJeuAsbxQYfsGKugmsp1PV6kY/lEEPO4uMaThO+HKn 0yFSKN++zqL6X8Jksi2u4/Vc3aMw1IA3O/tV5WSahvY9DK9xoq6f2moot4Hnl33v jDarPEyh7TKbzUqllvv7bnAdHPbHPNGDCplxGwCzXBN30YgJzJaiqv8= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received-SPF:Authentication-Results:Received:Received:Received:Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=EwkI9EV9IGmEsFx7Aok9AGhwABqHmvZ8rEp/X/YMPicrzd7vvoTn/6BekPNFAr mkZH+AiLCBdDbn2FlrmLR2Ba4Tq86QblfwSy9nRE4/qqt+WLt56KN68L8ryZSVTy h0i3HoE2Pkd0Hmzqhx7CN0SqlMx5NNy1K716epobqjh2o=; Received: (qmail 27710 invoked by alias); 28 Feb 2012 20:57:32 -0000 Received: (qmail 27701 invoked by uid 22791); 28 Feb 2012 20:57:32 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from mail-pw0-f47.google.com (HELO mail-pw0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Feb 2012 20:57:19 +0000 Received: by pbbrp12 with SMTP id rp12so4785879pbb.20 for ; Tue, 28 Feb 2012 12:57:19 -0800 (PST) Received-SPF: pass (google.com: domain of iant@google.com designates 10.68.208.136 as permitted sender) client-ip=10.68.208.136; Authentication-Results: mr.google.com; spf=pass (google.com: domain of iant@google.com designates 10.68.208.136 as permitted sender) smtp.mail=iant@google.com; dkim=pass header.i=iant@google.com Received: from mr.google.com ([10.68.208.136]) by 10.68.208.136 with SMTP id me8mr58646287pbc.55.1330462639158 (num_hops = 1); Tue, 28 Feb 2012 12:57:19 -0800 (PST) Received: by 10.68.208.136 with SMTP id me8mr49431324pbc.55.1330462639124; Tue, 28 Feb 2012 12:57:19 -0800 (PST) Received: by 10.68.208.136 with SMTP id me8mr49431305pbc.55.1330462639033; Tue, 28 Feb 2012 12:57:19 -0800 (PST) Received: from coign.google.com ([2620:0:1000:2301:f2de:f1ff:fe40:72a8]) by mx.google.com with ESMTPS id m3sm16579505pbg.44.2012.02.28.12.57.18 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Feb 2012 12:57:18 -0800 (PST) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: libgo patch committed: Call exit rather than _exit Date: Tue, 28 Feb 2012 12:57:17 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkNIkawrHprv/JhxJEwfU6FbU8vsqJCZufOCu0AyD9v4ojvI9xuilWPbOAvQeqIZ/XvU7T6/Whv5kTSEs0HmCg+8lhoQrP48j3HzwH4XJJAAR51Qfkr9Ro436AgGSS/iPv0YPHWsD8aGNGb2R/n9ENVJHIGo6KOMRp5NyEKTpJ7YJxO2fs= 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 The libgo runtime was calling _exit when a Go program finished. There was no particular reason for this, and it meant that --coverage did not work becase the .gcda file was never generated. This patch fixes that. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r 4dd8ef0f17b4 libgo/runtime/runtime.h --- a/libgo/runtime/runtime.h Fri Feb 24 18:10:56 2012 -0800 +++ b/libgo/runtime/runtime.h Tue Feb 28 12:53:09 2012 -0800 @@ -348,7 +348,7 @@ #define runtime_strcmp(s1, s2) __builtin_strcmp((s1), (s2)) #define runtime_mcmp(a, b, s) __builtin_memcmp((a), (b), (s)) #define runtime_memmove(a, b, s) __builtin_memmove((a), (b), (s)) -#define runtime_exit(s) _exit(s) +#define runtime_exit(s) exit(s) MCache* runtime_allocmcache(void); void free(void *v); struct __go_func_type;