From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54479 invoked by alias); 10 Nov 2015 20:13:35 -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 54463 invoked by uid 89); 10 Nov 2015 20:13:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Nov 2015 20:13:32 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-13-ouHyAS5qTIK5jgtHQ3L4-A-1; Tue, 10 Nov 2015 20:13:25 +0000 Received: from localhost ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Nov 2015 20:13:25 +0000 From: Richard Sandiford To: Richard Biener Mail-Followup-To: Richard Biener ,GCC Patches , richard.sandiford@arm.com Cc: GCC Patches Subject: Re: Replace match.pd DEFINE_MATH_FNs with auto-generated lists References: <87h9kyose0.fsf@e105548-lin.cambridge.arm.com> Date: Tue, 10 Nov 2015 20:13:00 -0000 In-Reply-To: (Richard Biener's message of "Tue, 10 Nov 2015 12:24:43 +0100") Message-ID: <87bnb1mx3u.fsf@e105548-lin.cambridge.arm.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-MC-Unique: ouHyAS5qTIK5jgtHQ3L4-A-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-11/txt/msg01277.txt.bz2 Richard Biener writes: > On Sat, Nov 7, 2015 at 2:23 PM, Richard Sandiford > wrote: >> diff --git a/gcc/genmatch.c b/gcc/genmatch.c >> index cff32b0..7139476 100644 >> --- a/gcc/genmatch.c >> +++ b/gcc/genmatch.c >> @@ -4638,6 +4638,11 @@ main (int argc, char **argv) >> cpp_callbacks *cb =3D cpp_get_callbacks (r); >> cb->error =3D error_cb; >> >> + /* Add the build directory to the #include "" search path. */ >> + cpp_dir *dir =3D XCNEW (cpp_dir); >> + dir->name =3D ASTRDUP ("."); >> + cpp_set_include_chains (r, dir, NULL, false); > > Does that work on non-UNIX hosts? Bah, hadn't thought about that. > I wonder if there is sth > better we can use by passing some -DXXX=3D... to the genmatch > build command from the Makefile? toplev.c has: src_pwd =3D getpwd (); if (!src_pwd) src_pwd =3D "."; where getpwd is a libiberty function. Maybe we can use that? Thanks, Richard