From patchwork Mon Oct 17 12:26:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 682887 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 3syHWr1c7Pz9ryv for ; Mon, 17 Oct 2016 23:27:04 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=FxO1vw7N; 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=CDeLk/ObORm33cZdPN9gdgWjgbEBoQgdTT8HmNefBpvW7PjFkplto aaS7F2nmJL6VPJ3JJG5rpXgfNO4IWkF6RCkrt35kK+IEPaOyp7xA6vdRVi8htblG MAqVWZ+9urG2vUfivcp5obSNv0LWvqzvwnX7je0wgAFBNwhIsFUDBQ= 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=aciwLnSwAmxg4pDSIROxRYFI4Fw=; b=FxO1vw7NjmrTqOL4d37k KwCKdd/9SrlC2dW1p8zmaKJT9yBJ4uzT+/rRIhDsE4FL/b5rQ6h5bvkm2h7jOplX P7VBtvfRHbI69zTajIbDcJw6cinkQdxS2Sjhm0rU58LFPK8I1fHi4h5klnZ6Oaqe nu/D27h/Cpta3cjfCwUEaQM= Received: (qmail 42823 invoked by alias); 17 Oct 2016 12:26:56 -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 42803 invoked by uid 89); 17 Oct 2016 12:26:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Oct 2016 12:26:44 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A0A1CABC3 for ; Mon, 17 Oct 2016 12:26:42 +0000 (UTC) Date: Mon, 17 Oct 2016 14:26:42 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Clear BB_VISITED in bb-reorder Message-ID: User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 $subject, applied as obvious. Richard. 2016-10-17 Richard Biener * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED before using it. Index: gcc/bb-reorder.c =================================================================== --- gcc/bb-reorder.c (revision 241228) +++ gcc/bb-reorder.c (working copy) @@ -2355,7 +2355,10 @@ reorder_basic_blocks_simple (void) To start with, everything points to itself, nothing is assigned yet. */ FOR_ALL_BB_FN (bb, cfun) - bb->aux = bb; + { + bb->aux = bb; + bb->flags &= ~BB_VISITED; + } EXIT_BLOCK_PTR_FOR_FN (cfun)->aux = 0;