Article View: comp.std.c
Article #497Error handling requirements of inlining code.
From: Paul Reger
Date: Fri, 25 Aug 1989 17:42
Date: Fri, 25 Aug 1989 17:42
30 lines
1242 bytes
1242 bytes
Have a question about inlining code. Say a compiler is able to inline
code for optimzation reasons. What error handling requirements are
imposed on the compiler when doing so ??
For example, say the code:
#include <math.h>
...
double x;
x = sqrt(-1.0);
...
is given the compiler, and it decides to inline sqrt(). Would the
standard require the compiler to also provide error handling of sqrt()
according to the standard library ??? (The standard library practice
for the error is to set errno to EDOM in this case, and return 0.0).
Or is this defined ??
Any help would be greatly appreciated.
Thank you,
paulr (Paul Reger)
Sequent Computer Systems Beaverton, OR.
... {sun,ucbvax!rutgers!ogccse,uunet}!sequent!paulr
Technical Details
Message-ID:
<20708@sequent.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!sequent!paulrShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!sequent!paulr From: paulr@sequent.UUCP (Paul Reger) Newsgroups: comp.std.c Subject: Error handling requirements of inlining code. Keywords: Error handling, Inlining, Optimization Message-ID: <20708@sequent.UUCP> Date: 25 Aug 89 17:42:37 GMT Reply-To: paulr@sequent.UUCP (Paul Reger) Organization: Sequent Computer Systems, Inc Lines: 30