summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-22 02:21:16 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-22 02:21:16 +0000
commit1542b1ef01dac82f4fb2b3daa425ca05671adeaf (patch)
tree07ff33bb9e6e093078a8e0747db18838449d8bb0
parent9a1ec8264f2fdb652317484f840b7ff241879e07 (diff)
downloadppe42-gcc-1542b1ef01dac82f4fb2b3daa425ca05671adeaf.tar.gz
ppe42-gcc-1542b1ef01dac82f4fb2b3daa425ca05671adeaf.zip
* cpplex.c (_cpp_process_line_notes): Mention option name in
trigraphs warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69659 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cpplex.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ba40ac662f6..bc66e098071 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/cpplex.c b/gcc/cpplex.c
index 025d72986fb..c3ef88dc060 100644
--- a/gcc/cpplex.c
+++ b/gcc/cpplex.c
@@ -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
OpenPOWER on IntegriCloud