This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Two other optimization questions.
- To: "law at cygnus dot com" <law at cygnus dot com>, "Richard Henderson" <rth at cygnus dot com>
- Subject: Re: Two other optimization questions.
- From: "Geert Bosch" <bosch at gnat dot com>
- Date: Fri, 09 Apr 1999 10:17:02 +0200
- Cc: "egcs at egcs dot cygnus dot com" <egcs at egcs dot cygnus dot com>, "Toon Moene" <toon at moene dot indiv dot nluug dot nl>
- Reply-To: "Geert Bosch" <bosch at gnat dot com>
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