From patchwork Fri Jun 15 19:36:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Iyer, Balaji V" X-Patchwork-Id: 165218 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 7BE27B708A for ; Sat, 16 Jun 2012 05:36:57 +1000 (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=1340393817; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Subject:Date:Message-ID:Content-Type: MIME-Version:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=53de/CU CAa+AfJkBxXSoTeQOcco=; b=p0xdWxCb0WwA05vKpweMg+ICeHfA0sPsobVLJsD 5rv3TOPpew1xjgxAD63cs0vJdrWA7hzJDqPUfTufuk3lj+8VGhccmF4U/6bj1CT8 QoozT9QwY6KNJJ53eajRZmcWQHcLCCR+3jPYOJizmUC5o72n9MO3mnwhkzWzZQhh ObSo= 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:X-ExtLoop1:Received:Received:Received:From:To:Subject:Date:Message-ID:Content-Type:MIME-Version:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=nvO6CEmXdhxt2FiFBNrR53d5cUZYk0gm2JS4VwiUBeExaeTR+2MHVRWUEnBrOB 0NghxWa23GT5NLZuR3EpAj+SGeOsTtE0JClkelUxN2V+qfo+DwHm4nOV2EesIakz vv4e3kMzQqqkFP+PrBIRD7UqZRCBF+Pd0+ON05J5dobrA=; Received: (qmail 13054 invoked by alias); 15 Jun 2012 19:36:52 -0000 Received: (qmail 12775 invoked by uid 22791); 15 Jun 2012 19:36:50 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga11.intel.com (HELO mga11.intel.com) (192.55.52.93) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Jun 2012 19:36:38 +0000 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 15 Jun 2012 12:36:38 -0700 X-ExtLoop1: 1 Received: from fmsmsx107.amr.corp.intel.com ([10.19.9.54]) by fmsmga001.fm.intel.com with ESMTP; 15 Jun 2012 12:36:38 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.19.17.220) by FMSMSX107.amr.corp.intel.com (10.19.9.54) with Microsoft SMTP Server (TLS) id 14.1.355.2; Fri, 15 Jun 2012 12:36:38 -0700 Received: from fmsmsx102.amr.corp.intel.com ([169.254.2.223]) by FMSMSX151.amr.corp.intel.com ([169.254.6.32]) with mapi id 14.01.0355.002; Fri, 15 Jun 2012 12:36:38 -0700 From: "Iyer, Balaji V" To: "gcc-patches@gcc.gnu.org" Subject: [PATCH][Cilkplus]PR 53567 Date: Fri, 15 Jun 2012 19:36:37 +0000 Message-ID: MIME-Version: 1.0 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 Hello Everyone, This patch is for the Cilkplus branch affecting both C and C++ compilers. The dwarf output function was looking for debugging information for an internally generated spawn helper which is not there. So this patch will make sure that those functions are excluded. Thanks, Balaji V. Iyer. Index: gcc/dwarf2out.c =================================================================== --- gcc/dwarf2out.c (revision 188679) +++ gcc/dwarf2out.c (working copy) @@ -19548,6 +19548,12 @@ static void dwarf2out_function_decl (tree decl) { + if (flag_enable_cilk && decl && TREE_CODE (decl) == FUNCTION_DECL) + { + function *f = DECL_STRUCT_FUNCTION (decl); + if (f && f->is_cilk_helper_function) + return; /* can't do debuging output for spawn helper */ + } dwarf2out_decl (decl); call_arg_locations = NULL; call_arg_loc_last = NULL; Index: gcc/ChangeLog.cilk =================================================================== --- gcc/ChangeLog.cilk (revision 188679) +++ gcc/ChangeLog.cilk (working copy) @@ -1,3 +1,7 @@ +2012-06-15 Balaji V. Iyer + + * dwarf2out.c (dwarf2out_function_decl): Added a check for spawn helper. + 2012-06-15 Balaji V. Iyer * cilk.c (install_builtin): Added a check if pushdecl is successful.