cpplex.c (_cpp_process_line_notes): Mention option name in trigraphs warning.
authorGeoffrey Keating <geoffk@apple.com>
Tue, 22 Jul 2003 02:21:16 +0000 (02:21 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 22 Jul 2003 02:21:16 +0000 (02:21 +0000)
* cpplex.c (_cpp_process_line_notes): Mention option name in
trigraphs warning.

From-SVN: r69659

gcc/ChangeLog
gcc/cpplex.c

index ba40ac662f634fe7d09204cc03891db6da4c8c51..bc66e09807190343510ed87c0d1b1ce45a1590f9 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-22  Geoffrey Keating  <geoffk@apple.com>
+
+       * cpplex.c (_cpp_process_line_notes): Mention option name in
+       trigraphs warning.
+
 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
 
        * combine.c (if_then_else_cond): Simplify the comparison of
index 025d72986fb1f34d40c403c4fd7a9aa40ea24fa2..c3ef88dc060dc233b300141db76c10e6add74a91 100644 (file)
@@ -244,9 +244,12 @@ _cpp_process_line_notes (cpp_reader *pfile, int in_comment)
                                     note->type,
                                     (int) _cpp_trigraph_map[note->type]);
              else
-               cpp_error_with_line (pfile, DL_WARNING, pfile->line, col,
-                                    "trigraph ??%c ignored",
-                                    note->type);
+               {
+                 cpp_error_with_line 
+                   (pfile, DL_WARNING, pfile->line, col,
+                    "trigraph ??%c ignored, use -trigraphs to enable",
+                    note->type);
+               }
            }
        }
       else