This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Selectiv on/off-turning of warnings



# 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]