This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Two other optimization questions.


Geert Bosch wrote:

>   Open code
> 
>         if (x < 0)
>           throw domain_error;
>         result = sqrt(x);
> 
>   What should actually happen, I think, is that we should allow for
>   builtins to be added by the language front end, and by the target
>   machine.
> 
> This is what currently is done in GNAT. Actually I do not really
> see the need for builtin's in the case of GNAT. Full function
> inlining across different compilation units works fine,
> and there is no need for special circuitry for language defined
> functions. (In general the idea of front-end provided overrides
> for builtin's seems interesting though!)

Hmmm, how do you do function inlining across different compilation units
?  The only Fortran implementation I'm familiar with that does that is
SGI's - they postpone interprocedural analysis and optimization until
link time.

Does GNAT have such a linker ?  If so, is it under the GPL (i.e. useable
to other Front Ends ?

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]