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.


On Thu, 8 Apr 1999 16:40:52 -0700, Richard Henderson 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!)

I think it is important to be able to get rid of the C-specific tests 
and have access to the "raw" sqrt without the extra overhead
and without having to use language specific builtins.

Regards,
   Geert




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