From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24632 invoked by alias); 8 Jan 2019 13:34:36 -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 24622 invoked by uid 89); 8 Jan 2019 13:34:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=sebastian, Sebastian X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Jan 2019 13:34:34 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4E9D94E938; Tue, 8 Jan 2019 13:34:33 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-18.ams2.redhat.com [10.36.116.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DBBE91059596; Tue, 8 Jan 2019 13:34:32 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id x08DYUgn021977; Tue, 8 Jan 2019 14:34:31 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id x08DYUWO021976; Tue, 8 Jan 2019 14:34:30 +0100 Date: Tue, 08 Jan 2019 13:34:00 -0000 From: Jakub Jelinek To: Sebastian Huber Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH 2/2] libgomp: Reduce copy and paste for RTEMS Message-ID: <20190108133430.GD30353@tucnak> Reply-To: Jakub Jelinek References: <20190108132835.15505-1-sebastian.huber@embedded-brains.de> <20190108132835.15505-2-sebastian.huber@embedded-brains.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190108132835.15505-2-sebastian.huber@embedded-brains.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00400.txt.bz2 On Tue, Jan 08, 2019 at 02:28:35PM +0100, Sebastian Huber wrote: > libgomp/ > > * config/rtems/bar.c: Include "../linux/bar.c" and delete copy > and paste code. > libgomp/config/rtems/bar.c | 183 +-------------------------------------------- > 1 file changed, 2 insertions(+), 181 deletions(-) > > diff --git a/libgomp/config/rtems/bar.c b/libgomp/config/rtems/bar.c > index 8f92d60b325..c16c763b954 100644 > --- a/libgomp/config/rtems/bar.c > +++ b/libgomp/config/rtems/bar.c > @@ -29,6 +29,7 @@ > > #include "libgomp.h" > #include "bar.h" > +#define GOMP_WAIT_H 1 Maybe move the above define right before the following line. > +#include "../linux/bar.c" Ok with that change. Jakub