This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] trigraphs
- From: Devang Patel <dpatel at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 21 Jul 2003 11:04:53 -0700
- Subject: [PATCH] trigraphs
This simple patch disables warnings about ignored trigraphs
if trigraphs or not used.
2003-07-21 Devang Patel <dpatel@apple.com>
* cpplex.c (_cpp_process_line_notes): Do not warn about ignored
trigraphs
if trigraphs are disabled.
Bootstrapped on powerpc-darwin. OK to commit if dejagnu tests
do not reveal any regression ?
--
Devang
Index: cpplex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cpplex.c,v
retrieving revision 1.244
diff -Idpatel.pbxuser -c -3 -p -r1.244 cpplex.c
*** cpplex.c 19 Jul 2003 14:47:01 -0000 1.244
--- cpplex.c 21 Jul 2003 18:00:21 -0000
*************** _cpp_process_line_notes (cpp_reader *pfi
*** 235,241 ****
}
else if (_cpp_trigraph_map[note->type])
{
! if (CPP_OPTION (pfile, warn_trigraphs)
&& (!in_comment || warn_in_comment (pfile, note)))
{
if (CPP_OPTION (pfile, trigraphs))
--- 235,242 ----
}
else if (_cpp_trigraph_map[note->type])
{
! if (CPP_OPTION (pfile, trigraphs)
! && CPP_OPTION (pfile, warn_trigraphs)
&& (!in_comment || warn_in_comment (pfile, note)))
{
if (CPP_OPTION (pfile, trigraphs))