Path: 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 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 ... 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