From patchwork Fri May 23 11:24:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 351804 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 472A214009C for ; Fri, 23 May 2014 21:24:29 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=x/tvYrCWCHfyBiMiDH+RgwTd0it7StKN5qjqvGpzt+ikajl84I+t1 YjVL5jfhqmoAR354ENdr88lT5ju4v8D+Y7B/EvhuRFwSLqVrhdi4eQEkviazcypp ImuFFUcZWGjjg613N6ss+J2CjF1athGC/9wuoCuGV7AAsBV6S3dN2Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=1OvWPngUo/4Kd8/KAc31fmH6NkM=; b=gMyA04x2g+mNZFnr0G3L jCsPAscU5uAISsKbbPtec0q/H7pDwPytpGA7C6ieyudB9SpBx9k2ftDXTy4tPU9J V1AarT60lOuOUNiuaaJSuudINOMyjXy3T1Vd8SoS4XNgRAlW65AWePCi30H70RcT Fxqxn5qj89qzSUh/LCqktT8= Received: (qmail 29715 invoked by alias); 23 May 2014 11:24:22 -0000 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 Received: (qmail 29699 invoked by uid 89); 23 May 2014 11:24:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 23 May 2014 11:24:20 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WnnaC-00007a-CF from Thomas_Schwinge@mentor.com for gcc-patches@gcc.gnu.org; Fri, 23 May 2014 04:24:16 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 23 May 2014 04:24:16 -0700 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Fri, 23 May 2014 12:24:15 +0100 From: Thomas Schwinge To: Subject: [COMMITTED] Remove duplicated variable initialization. Date: Fri, 23 May 2014 13:24:03 +0200 Message-ID: <1400844245-25554-1-git-send-email-thomas@codesourcery.com> MIME-Version: 1.0 From: tschwinge gcc/c/ * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable initialization. gcc/cp/ * semantics.c (finish_omp_clauses): Remove duplicated variable initialization. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210853 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c/ChangeLog | 3 +++ gcc/c/c-typeck.c | 2 +- gcc/cp/ChangeLog | 3 +++ gcc/cp/semantics.c | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git gcc/c/ChangeLog gcc/c/ChangeLog index c21f68f..5bee1ca 100644 --- gcc/c/ChangeLog +++ gcc/c/ChangeLog @@ -1,5 +1,8 @@ 2014-05-23 Thomas Schwinge + * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable + initialization. + * c-parser.c (c_parser_omp_target): Return bool values. 2014-05-22 Thomas Schwinge diff --git gcc/c/c-typeck.c gcc/c/c-typeck.c index 6f4bd4a..74a5ebd 100644 --- gcc/c/c-typeck.c +++ gcc/c/c-typeck.c @@ -11762,7 +11762,7 @@ c_finish_omp_clauses (tree clauses) { bitmap_head generic_head, firstprivate_head, lastprivate_head; bitmap_head aligned_head; - tree c, t, *pc = &clauses; + tree c, t, *pc; bool branch_seen = false; bool copyprivate_seen = false; tree *nowait_clause = NULL; diff --git gcc/cp/ChangeLog gcc/cp/ChangeLog index b9a22f9..90ded5b 100644 --- gcc/cp/ChangeLog +++ gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2014-05-23 Thomas Schwinge + * semantics.c (finish_omp_clauses): Remove duplicated variable + initialization. + * parser.c (cp_parser_omp_target): Return bool values. 2014-05-22 Paolo Carlini diff --git gcc/cp/semantics.c gcc/cp/semantics.c index 7e144a6..edab330 100644 --- gcc/cp/semantics.c +++ gcc/cp/semantics.c @@ -5222,7 +5222,7 @@ finish_omp_clauses (tree clauses) { bitmap_head generic_head, firstprivate_head, lastprivate_head; bitmap_head aligned_head; - tree c, t, *pc = &clauses; + tree c, t, *pc; bool branch_seen = false; bool copyprivate_seen = false;