Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!rochester!PT.CS.CMU.EDU!K.GP.CS.CMU.EDU!jgm From: jgm@K.GP.CS.CMU.EDU (John Myers) Newsgroups: comp.lang.c Subject: Re: Pragmas Message-ID: <579@PT.CS.CMU.EDU> Date: 2 Jan 88 20:06:44 GMT References: <8801021358.AA15890@decwrl.dec.com> Sender: netnews@PT.CS.CMU.EDU Organization: System/Technology Development Corp. Lines: 17 In article <8801021358.AA15890@decwrl.dec.com> minow@thundr.dec.com (Martin Minow THUNDR::MINOW ML3-5/U26 223-9922) writes: >According to the Draft Standard, unknown pragmas are to be ignored >(section 3.8.6 of the Aug. '87 draft). Because it doesn't distinguish >mistakes from typographical errors, this is a mistake, and one that the >Committee seems inordinately fond of: they rejected my request to >flag unknown pragmas as errors. > >The Gnu compiler "recognizes" all pragmas, causing them to run Towers >of Hanoi to a depth of 64. This is proper usage per the Draft Standard. > Unfortunately, this feature of the Gnu C preprocessor went away in the latest version, 1.16. It now passes #pragma statements through untouched. Actually, a conformant compiler could "recognize" all pragmas not otherwise defined by the compiler as a command to issue an error. _.John G. Myers