]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/directives.c
cppmain.c (scan_translation_unit): Don't worry about putting a space after hashes.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sun, 16 Sep 2001 11:23:56 +0000 (11:23 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 16 Sep 2001 11:23:56 +0000 (11:23 +0000)
commit18a9d8ff7f06fbdc3ea635c8d55ea4023bad0dd8
treeb5637b92895c1d89a6ebec87518678bddc00a55f
parent27553bf3253625f6c3e56d36599b9e7cf188bfe8
cppmain.c (scan_translation_unit): Don't worry about putting a space after hashes.

* cppmain.c (scan_translation_unit): Don't worry about
putting a space after hashes.
* cpplib.c (directive_diagnostics): New.
(_cpp_handle_directive): Update to use directive_diagnostics.
(run_directive): Don't toggle prevent_expansion.
(do_line): Backup in case of the line extension.
* cpplib.h (cpp_lexer_pos): Remove.
* cppmacro.c (_cpp_create_definition): Precede a leading #
with whitespace.

* gcc.dg/cpp/line5.c: New testcase.

From-SVN: r45645
gcc/ChangeLog
gcc/cpplib.c
gcc/cpplib.h
gcc/cppmacro.c
gcc/cppmain.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/line5.c [new file with mode: 0644]