From patchwork Mon Oct 31 14:23:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 689319 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 3t6xS56NP7z9s65 for ; Tue, 1 Nov 2016 01:23:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=k49Sde/f; 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=kd/SvKYJ78WXxUhStMLayA15oobFGzE9orhyIyj+W/etjaCUaPp4x EFFHUUEnK6rwrCfdjvFift0mzPzXtLJ4YWwYmrTZf48Obns/0wEPyZE/StC5OjyU B6hOnO0yWYvNqWH1rbgOnn1X1EPU+jpjTjm6E5OJUT6NAe/8h6vgn8= 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=1yxTYLAp50O7AyMbxutAGmqxB4U=; b=k49Sde/fPgi20Cbg8svy jZRwdheC1lanTVYHTSc43xmp0+5zDqH6UU1CNwFpedpXJMdi+9KMft1ZOB8ZLXm0 ankcCTZDLnSWL+DJy+wgujUnDL0MfR95jZosbxTc1wjKsO4quyWQEbVYAsZknL8i o8qwqSjcfG6Do06i3FAlqUk= Received: (qmail 76629 invoked by alias); 31 Oct 2016 14:23:40 -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 76618 invoked by uid 89); 31 Oct 2016 14:23:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:861 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, 31 Oct 2016 14:23:29 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 27BEAABFB for ; Mon, 31 Oct 2016 14:23:27 +0000 (UTC) Date: Mon, 31 Oct 2016 15:23:26 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR78047 Message-ID: User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 I am testing the following to fix another latent PTA bug uncovered by pointer comparsion folding. Bootstrap and regtest running on x86_64-unknown-linux-gnu. Richard. 2016-10-31 Richard Biener PR tree-optimization/78047 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize fake field at offset zero conservatively regarding to may_have_pointers. diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index fb364f1..2880382 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -5566,7 +5568,7 @@ push_fields_onto_fieldstack (tree type, vec *fieldstack, && offset + foff != 0) { fieldoff_s e - = {0, offset + foff, false, false, false, false, NULL_TREE}; + = {0, offset + foff, false, false, true, false, NULL_TREE}; pair = fieldstack->safe_push (e); }