From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23732 invoked by alias); 9 Jul 2009 16:49:49 -0000 Received: (qmail 23724 invoked by uid 22791); 9 Jul 2009 16:49:48 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-104-thursday.nerim.net (HELO kraid.nerim.net) (62.4.16.104) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jul 2009 16:49:43 +0000 Received: from hector.lesours (ours.starynkevitch.net [213.41.244.95]) by kraid.nerim.net (Postfix) with ESMTP id 0ADD0CF0C8 for ; Thu, 9 Jul 2009 18:49:40 +0200 (CEST) Received: from glinka.lesours ([192.168.0.1]) by hector.lesours with esmtp (Exim 4.69) (envelope-from ) id 1MOwoX-0000vb-1c for gcc@gcc.gnu.org; Thu, 09 Jul 2009 18:49:41 +0200 Message-ID: <4A561F86.3040100@starynkevitch.net> Date: Thu, 09 Jul 2009 16:49:00 -0000 From: Basile STARYNKEVITCH User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: GCC Mailing List Subject: plugins & PCH Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2009-07/txt/msg00177.txt.bz2 Hello I believe plugins and PCH are not always mixing well. For sure, plugins which are using PLUGIN_REGISTER_GGC_ROOTS & are called when *generating* a precompiled header should be coded with extraordinary care, and very probably some more suppport is needed inside the GCC trunk. See the discussion on http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00507.html for more. Maybe we should for the moment issue a warning when a precompiled header is generated with plugins having used PLUGIN_REGISTER_GGC_ROOTS? To be safe, the generated *gch file should know all the active plugins when it was generated. We also need a "dynamic tag" support which I only sketched in the discussion of http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00507.html Of course, this does not affect the read of precompiled headers. Comments are welcome. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***