From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69596 invoked by alias); 27 Mar 2017 16:16:38 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 69583 invoked by uid 89); 27 Mar 2017 16:16:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,FOREIGN_BODY1,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,URIBL_RED autolearn=no version=3.3.2 spammy=messaggio, originale, H*r:8.14.9, marzo X-HELO: mx1.phase.eu Received: from mx1.phase.eu (HELO mx1.phase.eu) (212.31.230.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 27 Mar 2017 16:16:36 +0000 Received: from nelson.pmc.phase.it (mail.phase.eu [10.0.0.14]) by mx1.phase.eu (8.14.9/8.14.9) with ESMTP id v2RGGMaw027591; Mon, 27 Mar 2017 18:16:22 +0200 Received: from NELSON.pmc.phase.it ([::1]) by nelson.pmc.phase.it ([::1]) with mapi id 14.02.0309.002; Mon, 27 Mar 2017 18:16:20 +0200 From: Davide Piombo To: "'Joseph Myers'" , David Malcolm CC: "'gcc@gcc.gnu.org'" Subject: R: Plugin development under windows Date: Mon, 27 Mar 2017 16:16:00 -0000 Message-ID: References: <1490623792.11099.48.camel@redhat.com> In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2017-03/txt/msg00161.txt.bz2 Hi Joseph, thanks a lot for your answer. Sorry but it is not clear to me if the point is that the plugin development= must include some windows-related code that I'm actually missing or if the= problem is on the GCC side, that is inside GCC the code section that loads= the dll, or part of it, is missing and it is still to be implemented. Thanks in advance Davide > -----Messaggio originale----- > Da: Joseph Myers [mailto:joseph@codesourcery.com] > Inviato: luned=EC 27 marzo 2017 17:57 > A: David Malcolm > Cc: Davide Piombo; 'gcc@gcc.gnu.org' > Oggetto: Re: Plugin development under windows >=20 > On Mon, 27 Mar 2017, David Malcolm wrote: >=20 > > > Substantially I'm writing just to ask: > > > Can GCC plugins run on a windows build of GCC compiler (MinGW) ? > > > > I suspect the answer is "you're the first person to try this in a > > while; some things may need fixing" - but that's a guess :) >=20 > If it's Windows host, the answer is: plugin support relies on dlopen, > and on -rdynamic for plugins to access symbols from cc1/cc1plus. No > doubt it would be possible to add Windows host support, but it would > require someone with a thorough understanding of the Windows DLL model > and how it differs from ELF shared libraries to come up with and > implement an appropriate design for Windows-host plugins in GCC. >=20 > -- > Joseph S. Myers > joseph@codesourcery.com