From patchwork Wed Mar 16 23:18:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 87314 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 01A7AB6FDC for ; Thu, 17 Mar 2011 10:18:58 +1100 (EST) Received: (qmail 1250 invoked by alias); 16 Mar 2011 23:18:57 -0000 Received: (qmail 1236 invoked by uid 22791); 16 Mar 2011 23:18:56 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, 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) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Mar 2011 23:18:50 +0000 Received: from kpbe11.cbf.corp.google.com (kpbe11.cbf.corp.google.com [172.25.105.75]) by smtp-out.google.com with ESMTP id p2GNIlg9010835 for ; Wed, 16 Mar 2011 16:18:47 -0700 Received: from iwl42 (iwl42.prod.google.com [10.241.67.234]) by kpbe11.cbf.corp.google.com with ESMTP id p2GNGqsO012892 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 16 Mar 2011 16:18:46 -0700 Received: by iwl42 with SMTP id 42so3103335iwl.14 for ; Wed, 16 Mar 2011 16:18:46 -0700 (PDT) Received: by 10.42.147.65 with SMTP id m1mr906992icv.217.1300317526107; Wed, 16 Mar 2011 16:18:46 -0700 (PDT) Received: from coign.google.com (dhcp-172-22-125-233.mtv.corp.google.com [172.22.125.233]) by mx.google.com with ESMTPS id 14sm211636ibo.12.2011.03.16.16.18.45 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2011 16:18:45 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: libgo patch committed: Don't crash SIGPROF Date: Wed, 16 Mar 2011 16:18:43 -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 to libgo changes the Go signal handling code to not try to handle SIGPROF. This lets the usual -pg profiler work. Except that it doesn't fully work with -fsplit-stack, but that is a separate issue. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r 90d887d10e08 libgo/runtime/go-signal.c --- a/libgo/runtime/go-signal.c Wed Mar 16 16:00:52 2011 -0700 +++ b/libgo/runtime/go-signal.c Wed Mar 16 16:10:04 2011 -0700 @@ -79,9 +79,6 @@ #ifdef SIGVTARLM { SIGVTALRM, 1 }, #endif -#ifdef SIGPROF - { SIGPROF, 1 }, -#endif #ifdef SIGWINCH { SIGWINCH, 1 }, #endif