From patchwork Sun Nov 15 20:06:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 544866 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 435FB14031F for ; Mon, 16 Nov 2015 07:07:02 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=weWK8s9o; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=PdPGgtvoRjKnzWwFeFhAAcmSc6WRXfgBq0W4l9/YtjqEBEfRlNypb AIljP/bU6D/I2moisfOhErvyzy/hgd5CHvi2CZfe6Io1+QtEwGKxGmhP1NUxWGAW 68cOI4V/KSRU+vAbqUa5Tr0CpkKyJZF+4X/EGPqK2Y1Ek1FQWmS/zg= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=LCbbXglAjJlwpiOwL6BMdW5iHDQ=; b=weWK8s9omDfyn2YVCgnV +ACSngebVuqAZoCSoRqPt9I8BA/wIBk9OQ+VoJxD0zIIaBS6xcQawsRW8p2kDf/C 3uQ2AQcZ2x/V6xoqhI5reKAAaT445LSyYtjKRrIlr+0EMBRxHCALS9etFW5vdTUT Aqu4gBfviQ3FN7NGTw+MnxM= Received: (qmail 77137 invoked by alias); 15 Nov 2015 20:06:55 -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 77128 invoked by uid 89); 15 Nov 2015 20:06:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: one.firstfloor.org Received: from one.firstfloor.org (HELO one.firstfloor.org) (193.170.194.197) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 15 Nov 2015 20:06:54 +0000 Received: by one.firstfloor.org (Postfix, from userid 503) id ED35886F70; Sun, 15 Nov 2015 21:06:49 +0100 (CET) Date: Sun, 15 Nov 2015 21:06:49 +0100 From: Andi Kleen To: jason@redhat.com, gcc-patches@gcc.gnu.org Subject: [PATCH] Fix obvious typo that breaks boot strap in delayed folding Message-ID: <20151115200649.GQ3533@two.firstfloor.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) The recent merge of the delayed folding branch breaks boot strap with ../../gcc/gcc/cp/tree.c: In function 'tree_node* build_cplus_array_type(tree, tree)': ../../gcc/gcc/cp/tree.c:894:44: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] = TYPE_NEEDS_CONSTRUCTING (elt_type)); ^ ../../gcc/gcc/cp/tree.c:896:51: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] = TYPE_HAS_NONTRIVIAL_DESTRUCTOR (elt_type)); Fix the obivous typos. To to commit? -Andi diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index d2db31a..83643df 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -891,9 +891,9 @@ build_cplus_array_type (tree elt_type, tree index_type) /* Push these needs up to the ARRAY_TYPE so that initialization takes place more easily. */ bool needs_ctor = (TYPE_NEEDS_CONSTRUCTING (t) - = TYPE_NEEDS_CONSTRUCTING (elt_type)); + == TYPE_NEEDS_CONSTRUCTING (elt_type)); bool needs_dtor = (TYPE_HAS_NONTRIVIAL_DESTRUCTOR (t) - = TYPE_HAS_NONTRIVIAL_DESTRUCTOR (elt_type)); + == TYPE_HAS_NONTRIVIAL_DESTRUCTOR (elt_type)); if (!dependent && t == TYPE_MAIN_VARIANT (t) && !COMPLETE_TYPE_P (t) && COMPLETE_TYPE_P (elt_type))