From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13650 invoked by alias); 9 Aug 2007 00:03:58 -0000 Received: (qmail 13481 invoked by uid 22791); 9 Aug 2007 00:03:56 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.179) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 09 Aug 2007 00:03:52 +0000 Received: by wa-out-1112.google.com with SMTP id m16so347133waf for ; Wed, 08 Aug 2007 17:03:50 -0700 (PDT) Received: by 10.114.152.17 with SMTP id z17mr720964wad.1186617829650; Wed, 08 Aug 2007 17:03:49 -0700 (PDT) Received: by 10.114.149.7 with HTTP; Wed, 8 Aug 2007 17:03:49 -0700 (PDT) Message-ID: <4aca3dc20708081703t40e15408r8792128bfd72d5f3@mail.gmail.com> Date: Thu, 09 Aug 2007 00:03:00 -0000 From: "Daniel Berlin" To: "Cupertino Miranda" Subject: Re: Fixed function compilation order Cc: gcc@gcc.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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: 2007-08/txt/msg00136.txt.bz2 On 8/8/07, Cupertino Miranda wrote: > Hello everyone, > > I am currently trying to enable GCC to perform compilation without > having to respect any compilation order, i.e. execute some pass to > any function at any time (it is not only pass reordering). > > As what I have seen from (trunk version of) GCC, it doesn't seem an > easy task to be achieved and it might traduce in many complications > later in development. > In that sense I would like to have some opinions and suggestions from > you all: For tree level optimization, this is really not difficult. For RTL, this is probably going to be really hard. > > - Imagining I am able to change the function context by updating > cfun, etc. Will passes (all_passes) execute without > missing/wrong data, i.e. is all shared data between passes accessed/ > updated thought pointers such as cfun, etc. ? What do you mean "missing/wrong" data. > - What should I initialise/finalise to be able to perform the > function context change ? See any IPA pass > > I would like to have your opinion and tips on how to approach it and > which problems I might expect to have later. > > Thanks in advance, > Cupertino Miranda > >