Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!adm!guy%gorodish@Sun.COM From: guy%gorodish@Sun.COM Newsgroups: comp.lang.c Subject: Re: Use of #pragma Message-ID: <7002@brl-adm.ARPA> Date: Tue, 21-Apr-87 09:51:18 EST Article-I.D.: brl-adm.7002 Posted: Tue Apr 21 09:51:18 1987 Date-Received: Wed, 22-Apr-87 03:13:13 EST Sender: news@brl-adm.ARPA 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.)