From patchwork Mon Jun 11 18:36:53 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: 164236 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 92D70B6F62 for ; Tue, 12 Jun 2012 04:37:18 +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=1340044638; 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=ZKtZH9V L0D+0IO5buFG9+N+bgk0=; b=E9+LFkBnw4SHWoNFmSpF5WdHT6RV3IozGgFLrYG P2jHsqnOp2gADoY3E3RBDd5d3pdg5Ij5PJWzu0noEjzWp2w6A84Iloasi2iCFkrn 5WYF0/UnU0HQOw3IXJ5Nya/YN3tRxkpZA2gkSRs/UKnbhfHK27WHviwOF2Gyu7Uk +f/o= 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=SUXTHTQe+vgYlR6gD8Oj5KYKS7HPvtaazEH4qASOamVPO+mlhnA0WCIYtRIs+T XI+vnMEIHmi70FvFWNFsvQF5TVo7sneaA7tlAQobJUQkJzcz+MkrNgL9Qtjem7FQ CbDq9b00e2FpIH5W02QhGABYCYt73XlGGtbRLUyqY4WVo=; Received: (qmail 21001 invoked by alias); 11 Jun 2012 18:37:13 -0000 Received: (qmail 20892 invoked by uid 22791); 11 Jun 2012 18:37:12 -0000 X-SWARE-Spam-Status: No, hits=-4.8 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 mga14.intel.com (HELO mga14.intel.com) (143.182.124.37) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Jun 2012 18:37:00 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 11 Jun 2012 11:36:59 -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:36:56 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.19.17.220) 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:36:55 -0700 Received: from fmsmsx102.amr.corp.intel.com ([169.254.2.199]) by FMSMSX151.amr.corp.intel.com ([169.254.6.230]) with mapi id 14.01.0355.002; Mon, 11 Jun 2012 11:36:55 -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:36:53 +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. This patch will make the cilkrts_stack_frame struct 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.