This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Selectiv on/off-turning of warnings
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: Selectiv on/off-turning of warnings
- From: Mo McKinlay <mmckinlay at labs dot interopen dot org>
- Date: Thu, 23 Mar 2000 01:21:08 +0000 (GMT)
- cc: Enrico dot Scholz at informatik dot tu-chemnitz dot de, gcc at gcc dot gnu dot org
# I think there would be a long debate whether it is reasonable. For one
# thing, some people claim that #pragma is not reasonable. Since the
# standard says a compiler can do anything it wants when it sees a
# #pragma, I believe some version of gcc used to invoke Emacs when it
# saw a #pragma :-)
Certainly the Borland compilers rely heavily on #pragmas all sorts of
things - mostly for function-local warning selection, but it does cover
other bases too, such as controlling precompiled headers (#pragma
hdrstop).
My personal view is that there should never be #pragmas implemented that
affect code generation, because it doesn't help portability issues any
(#pragma itself doesn't, but relying on it to alter code generation
behavior would be much worse, IMVHO).
--
Mo McKinlay T: +44 (0) 709 22 55 05 x1
Chief Software Architect F: +44 (0) 709 22 55 05 x3
inter/open E: mmckinlay@labs.interopen.org
A division of Bekon Marketing Limited W: http://www.interopen.org