From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) by sourceware.org (Postfix) with ESMTPS id 7219A3858C2B for ; Mon, 8 May 2023 13:14:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7219A3858C2B Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=lorenzosalvadore.it Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=lorenzosalvadore.it Date: Mon, 08 May 2023 13:14:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lorenzosalvadore.it; s=protonmail2; t=1683551681; x=1683810881; bh=3DhCfZc1k2JkkzCrioEHNUsa3Ohsr4wtrNREIXM0hdM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=DCyGrhDC82JfGp4XgIZFEci0whZQshXBWm4RnpDSQU3P925jVPNev2mvicPyHx6Fe FdRmH1AMlZnjUiQLnhRblesh0OhZ3V7svkj37AMmnBiw38HQrApD058mVVCSbGhJ24 YnZnNa2kpVIjmVt+UT7oE3N6wQ7VqwW39i2aQRc0oP9KmPrRzIt6NpioKJX2cPMuQs oJjjXRlmr1ZYVD+t+86ikqVRQRUGWqYKDXYdvTvIjnbNSQ9HeAU3CEPPrUG0HWqKlS lAbyB752395iFBaeqCQPCxiTIf7csbswe8v559F6ZUi1zoKwngy7MfWGRn+UuNHRds 0oJyKiEeeEIdw== To: "gcc-patches@gcc.gnu.org" From: Lorenzo Salvadore Cc: "jit@gcc.gnu.org" , "dmalcolm@redhat.com" , "richard.guenther@gmail.com" , Gerald Pfeifer Subject: Ping^8: [PATCH] jit: Install jit headers in $(libsubincludedir) [PR 101491] Message-ID: In-Reply-To: References: <2hPJROSKr12LUbj75IdxapgudFJ3K_Ii-S5WL7QSTmsACnLn2QkK1SVORwMSoBgC5CC1f9kzo03CBBc7wJ3Nw5whwLkrghpWU7s1Z37RyUg=@lorenzosalvadore.it> <0CzquyLGP5hhA_cGQAlhaxq-jewz1JR0MRfMqOxmVReSdjkmSJazgi59Zok5D028q7GD0XIvlCRGdtU9nQYnWv1zk9EkmACks2BEobo3QrE=@lorenzosalvadore.it> Feedback-ID: 53711648:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00,DKIM_INVALID,DKIM_SIGNED,GIT_PATCH_0,KAM_DMARC_STATUS,KAM_SHORT,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello, Ping https://gcc.gnu.org/pipermail/gcc-patches/2022-November/606450.html Thanks, Lorenzo Salvadore > From f8e2c2ee89a7d8741bb65163d1f1c20edcd546ac Mon Sep 17 00:00:00 2001 > From: Lorenzo Salvadore developer@lorenzosalvadore.it > > Date: Wed, 16 Nov 2022 11:27:38 +0100 > Subject: [PATCH] jit: Install jit headers in $(libsubincludedir) [PR 1014= 91] > > Installing jit/libgccjit.h and jit/libgccjit++.h headers in > $(includedir) can be a problem for machines where multiple versions of > GCC are required simultaneously, see for example this bug report on > FreeBSD: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257060 > > Hence, > > - define $(libsubincludedir) the same way it is defined in libgomp; > - install jit/libgccjit.h and jit/libgccjit++.h in $(libsubincludedir). > > The patch has already been applied successfully in the official FreeBSD > ports tree for the ports lang/gcc11 and lang/gcc12. Please see the > following commits: > > https://cgit.freebsd.org/ports/commit/?id=3D0338e04504ee269b7a95e6707f131= 4bc1c4239fe > https://cgit.freebsd.org/ports/commit/?id=3Df1957296ed2dce8a09bb9582e9a5a= 715bf8b3d4d > > gcc/ChangeLog: > > 2022-11-16 Lorenzo Salvadore developer@lorenzosalvadore.it > > PR jit/101491 > * Makefile.in: Define and create $(libsubincludedir) > > gcc/jit/ChangeLog: > > 2022-11-16 Lorenzo Salvadore developer@lorenzosalvadore.it > > PR jit/101491 > * Make-lang.in: Install headers in $(libsubincludedir) > --- > gcc/Makefile.in | 3 +++ > gcc/jit/Make-lang.in | 4 ++-- > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/gcc/Makefile.in b/gcc/Makefile.in > index f672e6ea549..3bcf1c491ab 100644 > --- a/gcc/Makefile.in > +++ b/gcc/Makefile.in > @@ -635,6 +635,8 @@ libexecdir =3D @libexecdir@ > > # Directory in which the compiler finds libraries etc. > libsubdir =3D $(libdir)/gcc/$(real_target_noncanonical)/$(version)$(accel= _dir_suffix) > +# Directory in which the compiler finds headers. > +libsubincludedir =3D $(libdir)/gcc/$(target_alias)/$(version)/include > # Directory in which the compiler finds executables > libexecsubdir =3D $(libexecdir)/gcc/$(real_target_noncanonical)/$(version= )$(accel_dir_suffix) > # Directory in which all plugin resources are installed > @@ -3642,6 +3644,7 @@ install-cpp: installdirs cpp$(exeext) > # $(libdir)/gcc/include isn't currently searched by cpp. > installdirs: > $(mkinstalldirs) $(DESTDIR)$(libsubdir) > + $(mkinstalldirs) $(DESTDIR)$(libsubincludedir) > $(mkinstalldirs) $(DESTDIR)$(libexecsubdir) > $(mkinstalldirs) $(DESTDIR)$(bindir) > $(mkinstalldirs) $(DESTDIR)$(includedir) > diff --git a/gcc/jit/Make-lang.in b/gcc/jit/Make-lang.in > index 248ec45b729..ba1b3e95da5 100644 > --- a/gcc/jit/Make-lang.in > +++ b/gcc/jit/Make-lang.in > @@ -360,9 +360,9 @@ selftest-jit: > # Install hooks: > jit.install-headers: installdirs > $(INSTALL_DATA) $(srcdir)/jit/libgccjit.h \ > - $(DESTDIR)$(includedir)/libgccjit.h > + $(DESTDIR)$(libsubincludedir)/libgccjit.h > $(INSTALL_DATA) $(srcdir)/jit/libgccjit++.h \ > - $(DESTDIR)$(includedir)/libgccjit++.h > + $(DESTDIR)$(libsubincludedir)/libgccjit++.h > > ifneq (,$(findstring mingw,$(target))) > jit.install-common: installdirs jit.install-headers > -- > 2.38.0