Skip to content
Snippets Groups Projects
  • Tom Tromey's avatar
    5d6342eb
    re PR preprocessor/27777 (Bad diagnostic emission when #error contains a trigraph) · 5d6342eb
    Tom Tromey authored
    gcc/testsuite
    	PR preprocessor/27777:
    	* gcc.dg/cpp/pr27777.c: New file.
    libcpp
    	PR preprocessor/27777:
    	* lex.c (cpp_output_line_to_string): New function.
    	* internal.h (_cpp_begin_message): Don't declare.
    	* errors.c (_cpp_begin_message): Now static.
    	* include/cpplib.h (cpp_output_line_to_string): Declare.
    	* directives.c (do_diagnostic): Rewrote.  Use
    	cpp_output_line_to_string.  Don't use _cpp_begin_message.
    
    From-SVN: r135740
    5d6342eb
    History
    re PR preprocessor/27777 (Bad diagnostic emission when #error contains a trigraph)
    Tom Tromey authored
    gcc/testsuite
    	PR preprocessor/27777:
    	* gcc.dg/cpp/pr27777.c: New file.
    libcpp
    	PR preprocessor/27777:
    	* lex.c (cpp_output_line_to_string): New function.
    	* internal.h (_cpp_begin_message): Don't declare.
    	* errors.c (_cpp_begin_message): Now static.
    	* include/cpplib.h (cpp_output_line_to_string): Declare.
    	* directives.c (do_diagnostic): Rewrote.  Use
    	cpp_output_line_to_string.  Don't use _cpp_begin_message.
    
    From-SVN: r135740