From patchwork Mon Jun 11 18:38:05 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: 164237 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 E45331007D2 for ; Tue, 12 Jun 2012 04:38:26 +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=1340044707; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Subject:Date:Message-ID:References: In-Reply-To:Content-Type:MIME-Version:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=EntOhLyC1FhIgNefpTTfaxfOaBM=; b=yuwPp5ppwy7OODQ twF2BgLQjatNM1wmEmnI0ScUMjj/ER+h85necM6owFzoqcJgG3+Rbe7EbiuXXfAy sbvF4NEv6+fm0uTF15VjpHtfrcztQAVRRwMyUgaUuP0MTON0mEn1Yv+67nC/8/jw zCAoNFJTG/KiJHRjU7xxsw2580fU= 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:References:In-Reply-To:Content-Type:MIME-Version:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=ODi/k+2k+CKBH1App9/G/1e3ct4ZZ02GO8t5dYkeLJAcFQCv1f/0aTc//IRQH9 PIggW0xmITL+96MGkG3cBEbrnKETS+qWpduHRyNCLh2PUdRauP5FIaNyj6HtpiVg 7pb0NM/kfUKrCMmyCbM2hmrFax3A0b7sXA8wNrpvzIsT0=; Received: (qmail 28772 invoked by alias); 11 Jun 2012 18:38:21 -0000 Received: (qmail 28678 invoked by uid 22791); 11 Jun 2012 18:38:20 -0000 X-SWARE-Spam-Status: No, hits=-5.5 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga03.intel.com (HELO mga03.intel.com) (143.182.124.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Jun 2012 18:38:08 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 11 Jun 2012 11:38:07 -0700 X-ExtLoop1: 1 Received: from azsmsx601.amr.corp.intel.com ([10.2.121.193]) by azsmga001.ch.intel.com with ESMTP; 11 Jun 2012 11:38:07 -0700 Received: from fmsmsx105.amr.corp.intel.com (10.19.9.36) by azsmsx601.amr.corp.intel.com (10.2.121.193) with Microsoft SMTP Server (TLS) id 8.2.255.0; Mon, 11 Jun 2012 11:38:07 -0700 Received: from fmsmsx102.amr.corp.intel.com ([169.254.2.199]) by FMSMSX105.amr.corp.intel.com ([169.254.5.99]) with mapi id 14.01.0355.002; Mon, 11 Jun 2012 11:38:07 -0700 From: "Iyer, Balaji V" To: "gcc-patches@gcc.gnu.org" Subject: [PATCH][Cilkplus] Patch to make internal struct runtme independent Date: Mon, 11 Jun 2012 18:38:05 +0000 Message-ID: References: In-Reply-To: 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. This patch will make the cilkrts_stack_frame structure independent of the runtime. Thanking You, Yours Sincerely, Balaji V. Iyer. Index: gcc/cilk.c =================================================================== --- gcc/cilk.c (revision 188393) +++ gcc/cilk.c (working copy) @@ -165,7 +165,7 @@ TYPE_ALIGN (frame) = PREFERRED_STACK_BOUNDARY; TREE_ADDRESSABLE (frame) = 1; /* XXX Is this right? */ - finish_builtin_struct (frame, "__cilkrts_stack_frame", fields, NULL_TREE); + finish_builtin_struct (frame, "__cilkrts_stack_frame_GCC", fields, NULL_TREE); /* XXX C++ only SET_CLASS_TYPE_P(record, 1); */ /* XXX C++ only xref_basetypes (record, NULL_TREE); */ cilk_frame_type_decl = frame; Index: gcc/ChangeLog.cilk =================================================================== --- gcc/ChangeLog.cilk (revision 188393) +++ gcc/ChangeLog.cilk (working copy) @@ -1,3 +1,8 @@ +2012-06-11 Balaji V. Iyer + + * cilk.c (cilk_init_builtins): Made the stack frame structure runtime + independent. + 2012-06-05 Balaji V. Iyer * cilk-spawn.c (compute_loop_var): Removed an unwanted assert.