From patchwork Thu Jul 5 21:17:18 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: 169273 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 9E9782C0083 for ; Fri, 6 Jul 2012 07:17:36 +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=1342127857; h=Comment: DomainKey-Signature: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=WZrYd7a KVIgZRZ1kzpXVUPYf1Jo=; b=si4qu1tj7P2IUcKuDRYwRZIYptmu4Lx1DM49yat cvzqCLIOYL2coRafIqGTp246jMuroL0W1kritfhmqTSHanFyzieaxY41Y1/zSs+5 ZgL9Sm0WUx2LFeeeJYNhx3+D9QZyeeKNv4InkjWjem72guXVoj/0xYRtpfSt13gy AzyM= 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: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=IR/IXzWdhPDO9ts2tSLIe228Ci4d1i7s/gVEW9KK02RjtbA+SK8Hb8/hftSJQ4 zwxK8ETSTSCLg9dZUNftd8NmjM8rdG8w6pQI2BT8MXsO0CKlQIqxVNvIuIC13pQp 7cgI80HARoFa+ofe0+eqC1vQX8tPa3sUhIP5+VF6sBf54=; Received: (qmail 1217 invoked by alias); 5 Jul 2012 21:17:33 -0000 Received: (qmail 1205 invoked by uid 22791); 5 Jul 2012 21:17:32 -0000 X-SWARE-Spam-Status: No, hits=-6.7 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; Thu, 05 Jul 2012 21:17:19 +0000 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 05 Jul 2012 14:17:19 -0700 X-ExtLoop1: 1 Received: from fmsmsx104.amr.corp.intel.com ([10.19.9.35]) by fmsmga001.fm.intel.com with ESMTP; 05 Jul 2012 14:17:19 -0700 Received: from fmsmsx102.amr.corp.intel.com ([169.254.2.65]) by FMSMSX104.amr.corp.intel.com ([169.254.4.70]) with mapi id 14.01.0355.002; Thu, 5 Jul 2012 14:17:19 -0700 From: "Iyer, Balaji V" To: "gcc-patches@gcc.gnu.org" Subject: RE: [PATCH][Cilkplus] Patch to fix a couple testsuite results Date: Thu, 5 Jul 2012 21:17:18 +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 Sorry, I created the patch in the wrong directory. Please see the corrected patch. Thanks, Balaji V. Iyer. -----Original Message----- From: Iyer, Balaji V Sent: Thursday, July 05, 2012 5:09 PM To: 'gcc-patches@gcc.gnu.org' Subject: [PATCH][Cilkplus] Patch to fix a couple testsuite results Hello Everyone, This patch is for the Cilk Plus branch mainly affecting the C compiler. It will fix tests failing in gcc.c-torture and some -Wpadding tests. Thanking You, Yours sincerely, Balaji V. Iyer. Index: gcc/cilk.c =================================================================== --- gcc/cilk.c (revision 189265) +++ gcc/cilk.c (working copy) @@ -67,7 +67,7 @@ add_field (const char *name, tree type, tree fields) { tree t = get_identifier(name); - tree field = build_decl (EXPR_LOCATION(t), FIELD_DECL, t, type); + tree field = build_decl (BUILTINS_LOCATION, FIELD_DECL, t, type); TREE_CHAIN (field) = fields; return field; } Index: gcc/c-typeck.c =================================================================== --- gcc/c-typeck.c (revision 189265) +++ gcc/c-typeck.c (working copy) @@ -10321,6 +10321,7 @@ switch (code) { case MULT_EXPR: + op0 = c_save_expr (op0); imag = build2 (resultcode, real_type, op0, imag); /* Fall through. */ case PLUS_EXPR: Index: gcc/ChangeLog.cilk =================================================================== --- gcc/ChangeLog.cilk (revision 189265) +++ gcc/ChangeLog.cilk (working copy) @@ -1,3 +1,8 @@ +2012-07-05 Balaji V. Iyer + + * c-typeck.c (build_binary_op): Added a call to c_save_expr. + * cilk.c (add_field): Changed the location of field to builtin location. + 2012-07-03 Balaji V. Iyer * cilk-spawn.c (compute_loop_var): Changed count_type from the struct