From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29609 invoked by alias); 16 Jul 2009 13:09:27 -0000 Received: (qmail 29595 invoked by uid 22791); 16 Jul 2009 13:09:26 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Jul 2009 13:09:13 +0000 Received: from wpaz5.hot.corp.google.com (wpaz5.hot.corp.google.com [172.24.198.69]) by smtp-out.google.com with ESMTP id n6GD99Ho022551 for ; Thu, 16 Jul 2009 14:09:10 +0100 Received: from ewy1 (ewy1.prod.google.com [10.241.103.1]) by wpaz5.hot.corp.google.com with ESMTP id n6GD96dA001381 for ; Thu, 16 Jul 2009 06:09:07 -0700 Received: by ewy1 with SMTP id 1so113104ewy.2 for ; Thu, 16 Jul 2009 06:09:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.30.81 with SMTP id j59mr2353278wea.50.1247749732532; Thu, 16 Jul 2009 06:08:52 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 Jul 2009 13:09:00 -0000 Message-ID: <38a0d8450907160608i2fe97c18g10a4930cee9ea23c@mail.gmail.com> Subject: Re: [plugin] Directory for plugins distributed with gcc From: Rafael Espindola To: Diego Novillo Cc: Olatunji Ruwase , gcc@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-System-Of-Record: true 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/msg00310.txt.bz2 > In general I think spinning off modules/passes that are not used very > frequently (e.g. the tree browser) is a good idea since it reduces the > size of our code base. I would go a bit further. One nice properties of plugins is that they have a more restrictive API. That should help us to get the code a bit more maintainable. Olatunji's work is a very nice example. For example, to make mudflap a plugin he had to remove the occurrences of "if (flag_mudflap)" and make mudflap use the existing generic varpool. > > Diego. > Cheers, -- Rafael Avila de Espindola Google | Gordon House | Barrow Street | Dublin 4 | Ireland Registered in Dublin, Ireland | Registration Number: 368047