This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Should warnings be issued for unrecognised pragmas ?
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: Should warnings be issued for unrecognised pragmas ?
- From: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Date: 17 Oct 1997 11:30:53 +0200
- Cc: egcs at cygnus dot com
- References: <199710162311.QAA24209@elmo.cygnus.com>
Nick Clifton <nickc@cygnus.com> writes:
|> The '89 ANSI C standard says:
|> "Any pragma that is not recognized by the implementation is ignored."
|> It is my opinion that "ignoring" is not the same as "not issuing a
|> warning", if such warnings have been requested, and that it is
|> important to know if a compiler is ignoring pragmas as they may have
|> been intended to affect code generation.
|> Any comments ?
A compiler can emit as many warnings as it likes, as long as it correctly
compiles conforming code.
--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org