Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!ames!oliveb!sun!gorodish!guy From: guy%gorodish@Sun.COM (Guy Harris) Newsgroups: comp.lang.c Subject: Re: Use of #pragma Message-ID: <17002@sun.uucp> Date: Mon, 20-Apr-87 13:20:58 EST Article-I.D.: sun.17002 Posted: Mon Apr 20 13:20:58 1987 Date-Received: Tue, 21-Apr-87 02:43:18 EST References: <6966@brl-adm.ARPA> Sender: news@sun.uucp Reply-To: guy@sun.UUCP (Guy Harris) Organization: Sun Microsystems, Mountain View Lines: 25 >Since I don't have the dpANS nor the ready cash to get one, I may >be asking a question already answered there. > >Is there a mechanism for allowing the temporary change of compilation >state (presumably with #pragma)? The ANSI draft standard says NOTHING WHATSOEVER about the interpretation of #pragmas, except that: A #pragma preprocessing directive causes the implementation to behave in an implementation-defined manner. Any pragma that is not recognized by an implementation is ignored. (3.8.6 Pragma directive, p. 82, October 1, 1986 draft). I don't think the ANSI standard will ever say anything about turning optimization on or off, especially about turning *specific optimizations* on or off. (At least I sure *hope* it doesn't; it should *not* assume that the only optimization technologies used in compilers will be the ones known to the authors of the standard at the time they write the standard.)