Newsgroups: comp.std.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Error handling requirements of inlining code.
Message-ID: <1989Aug26.215346.24652@utzoo.uucp>
Organization: U of Toronto Zoology
References: <20708@sequent.UUCP>
Date: Sat, 26 Aug 89 21:53:46 GMT

In article <20708@sequent.UUCP> paulr@sequent.UUCP (Paul Reger) writes:
>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 ??

It comes under the "as if" rule:  the behavior must be *the* *same* as
if inlining had not occurred -- insofar as ANSI C constrains the
behavior -- if you want to be standard-conforming.

Yes, this is a pain for error handling in math functions.
-- 
V7 /bin/mail source: 554 lines.|     Henry Spencer at U of Toronto Zoology
1989 X.400 specs: 2200+ pages. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
