From: Geoffrey Keating Date: Tue, 22 Jul 2003 02:21:16 +0000 (+0000) Subject: cpplex.c (_cpp_process_line_notes): Mention option name in trigraphs warning. X-Git-Tag: releases/gcc-3.4.0~4689 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=905bd7b527bc0134241aad1d566fd55bf09a5ef5;p=thirdparty%2Fgcc.git cpplex.c (_cpp_process_line_notes): Mention option name in trigraphs warning. * cpplex.c (_cpp_process_line_notes): Mention option name in trigraphs warning. From-SVN: r69659 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba40ac662f63..bc66e0980719 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-07-22 Geoffrey Keating + + * cpplex.c (_cpp_process_line_notes): Mention option name in + trigraphs warning. + 2003-07-22 Kazu Hirata * combine.c (if_then_else_cond): Simplify the comparison of diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 025d72986fb1..c3ef88dc060d 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