From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78457 invoked by alias); 23 Nov 2015 08:46:01 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 77352 invoked by uid 89); 23 Nov 2015 08:46:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: fencepost.gnu.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 23 Nov 2015 08:45:59 +0000 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35970) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1a0ml3-0001h9-AT for gcc-patches@gnu.org; Mon, 23 Nov 2015 03:45:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0mkx-0006nh-Q0 for gcc-patches@gnu.org; Mon, 23 Nov 2015 03:45:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0mkx-0006nc-KH for gcc-patches@gnu.org; Mon, 23 Nov 2015 03:45:51 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id ABA448C1B1; Mon, 23 Nov 2015 08:45:50 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-34.ams2.redhat.com [10.36.116.34]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tAN8jmZt028315 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 23 Nov 2015 03:45:49 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id tAN8jkxD018719; Mon, 23 Nov 2015 09:45:47 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id tAN8jiKG018716; Mon, 23 Nov 2015 09:45:44 +0100 Date: Mon, 23 Nov 2015 09:10:00 -0000 From: Jakub Jelinek To: Tom de Vries Cc: Thomas Schwinge , "gcc-patches@gnu.org" Subject: Re: [PATCH] Mark by_ref mem_ref in build_receiver_ref as non-trapping Message-ID: <20151123084544.GV5675@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <55A2618A.7050503@mentor.com> <87io9o1nbn.fsf@kepler.schwinge.homeip.net> <20150713083642.GO1788@tucnak.redhat.com> <55A389AD.5010203@mentor.com> <5650B91A.8030107@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5650B91A.8030107@mentor.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg02652.txt.bz2 On Sat, Nov 21, 2015 at 07:34:02PM +0100, Tom de Vries wrote: > Mark by_ref mem_ref in build_receiver_ref as non-trapping > > 2015-11-21 Tom de Vries > > * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping. This is ok. > > --- > gcc/omp-low.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/gcc/omp-low.c b/gcc/omp-low.c > index 830db75..78f2853 100644 > --- a/gcc/omp-low.c > +++ b/gcc/omp-low.c > @@ -1249,7 +1249,10 @@ build_receiver_ref (tree var, bool by_ref, omp_context *ctx) > TREE_THIS_NOTRAP (x) = 1; > x = omp_build_component_ref (x, field); > if (by_ref) > - x = build_simple_mem_ref (x); > + { > + x = build_simple_mem_ref (x); > + TREE_THIS_NOTRAP (x) = 1; > + } > > return x; > } Jakub