This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fixed function compilation order
- From: "Daniel Berlin" <dberlin at dberlin dot org>
- To: "Cupertino Miranda" <cupertinomiranda at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 8 Aug 2007 17:03:49 -0700
- Subject: Re: Fixed function compilation order
- References: <E7680E0E-F825-4F9D-8B55-E1C7E09C9F4B@gmail.com>
On 8/8/07, Cupertino Miranda <cupertinomiranda@gmail.com> 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
>
>