Message ID | CAAgBjMn5SbD2U9BsMCQiXgUMz5WDT_5STs5m7YZueWnV5vPcsg@mail.gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDS7JK5B44KRBCWB5SWAKGQE4D6APYQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 32627218EA for <linaro@patches.linaro.org>; Tue, 7 Jul 2015 00:42:51 +0000 (UTC) Received: by wgjx7 with SMTP id x7sf54949843wgj.3 for <linaro@patches.linaro.org>; Mon, 06 Jul 2015 17:42:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:mime-version:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-original-sender :x-original-authentication-results; bh=a4Nnu9GF+jJlLYsJ5oO5z+m3pV9d3qLsQJCWlkNkwak=; b=PhK9pKOF3SXjxF3bdPQfW/9b5I6Xb9LmU+t8TsJxBkfChY+fnfs1qDYT3qbslTZD8q QvyL9CkpCwkLA0WatSdFOckR/bi7aVtRNFVViUbjloX03DUJiJ++VvHgHjk6qWolmn8m zfERhsCkbQw4Q91fvZ1ih7GleV7s9UG0tRVbvAKc609dS74vOV61cQd3J2SP0Yj+vRyE 6/YZeHBYPNus3xyPlVLzUkU/AKdIMfKsiN8RjZ8HXIJa9Mh69lkqah7FFVqCZq4dBxBX 8BtAWl21YQ4uGVhQBmSD4Iuxf8A2A5sXDL+fE85iqXjg2XPnvBLyYe9vEiCamNowEl3Z kVnw== X-Gm-Message-State: ALoCoQn1HueUA/1sff3d281tRvK942BNeXoOC0rWjPwM4NZPe2gjno1TuQdgpGfHir5lhJBMvmNH X-Received: by 10.152.120.69 with SMTP id la5mr734769lab.7.1436229770110; Mon, 06 Jul 2015 17:42:50 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.4 with SMTP id x4ls746276lag.100.gmail; Mon, 06 Jul 2015 17:42:49 -0700 (PDT) X-Received: by 10.112.210.137 with SMTP id mu9mr1370494lbc.95.1436229769844; Mon, 06 Jul 2015 17:42:49 -0700 (PDT) Received: from mail-la0-x234.google.com (mail-la0-x234.google.com. [2a00:1450:4010:c03::234]) by mx.google.com with ESMTPS id k5si16662782lag.54.2015.07.06.17.42.49 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jul 2015 17:42:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::234 as permitted sender) client-ip=2a00:1450:4010:c03::234; Received: by laar3 with SMTP id r3so176065831laa.0 for <patchwork-forward@linaro.org>; Mon, 06 Jul 2015 17:42:49 -0700 (PDT) X-Received: by 10.152.26.163 with SMTP id m3mr1460069lag.86.1436229769605; Mon, 06 Jul 2015 17:42:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2045613lbb; Mon, 6 Jul 2015 17:42:48 -0700 (PDT) X-Received: by 10.66.184.133 with SMTP id eu5mr2814434pac.75.1436229768056; Mon, 06 Jul 2015 17:42:48 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id o6si31526513pds.214.2015.07.06.17.42.47 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jul 2015 17:42:48 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-402173-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 97838 invoked by alias); 7 Jul 2015 00:42:35 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 97823 invoked by uid 89); 7 Jul 2015 00:42:34 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yk0-f172.google.com Received: from mail-yk0-f172.google.com (HELO mail-yk0-f172.google.com) (209.85.160.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 07 Jul 2015 00:42:33 +0000 Received: by ykfs198 with SMTP id s198so59390130ykf.2 for <gcc-patches@gcc.gnu.org>; Mon, 06 Jul 2015 17:42:31 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.129.46.143 with SMTP id u137mr1782840ywu.92.1436229751527; Mon, 06 Jul 2015 17:42:31 -0700 (PDT) Received: by 10.37.88.137 with HTTP; Mon, 6 Jul 2015 17:42:31 -0700 (PDT) In-Reply-To: <CAFiYyc1empftJ0o1-F5rVYq2f+rnBkAvrsXewRfc4aZMpeVUJw@mail.gmail.com> References: <CAAgBjM=+zEhza27H8_n9qYyFE-o8RwnVTNaYL_2v3OppZ1U8Nw@mail.gmail.com> <CAFiYyc1empftJ0o1-F5rVYq2f+rnBkAvrsXewRfc4aZMpeVUJw@mail.gmail.com> Date: Tue, 7 Jul 2015 06:12:31 +0530 Message-ID: <CAAgBjMn5SbD2U9BsMCQiXgUMz5WDT_5STs5m7YZueWnV5vPcsg@mail.gmail.com> Subject: Re: fix segfault in verify_flow_info() with -dx option From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> To: Richard Biener <richard.guenther@gmail.com> Cc: gcc Patches <gcc-patches@gcc.gnu.org>, Jeff Law <law@redhat.com> Content-Type: multipart/mixed; boundary=001a1145a1ce284b6f051a3e4c75 X-IsSubscribed: yes X-Original-Sender: prathamesh.kulkarni@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::234 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 |
diff --git a/gcc/function.c b/gcc/function.c index 8134c4e..d540dc3 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -216,6 +216,7 @@ free_after_compilation (struct function *f) f->eh = NULL; f->machine = NULL; f->cfg = NULL; + f->curr_properties &= ~PROP_cfg; regno_reg_rtx = NULL; } diff --git a/gcc/testsuite/gcc.dg/dx-test.c b/gcc/testsuite/gcc.dg/dx-test.c new file mode 100644 index 0000000..579ccfb --- /dev/null +++ b/gcc/testsuite/gcc.dg/dx-test.c @@ -0,0 +1,5 @@ +/* { dg-do compile } */ +/* { dg-options "-dx" } */ + +void f(void) +{}