gcc/c-family/ChangeLog: * c-common.h (conflict_marker_get_final_tok_kind): New prototype. * c-lex.c (conflict_marker_get_final_tok_kind): New function. gcc/c/ChangeLog: * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2 to 4. (c_parser_peek_nth_token): New function. (c_parser_peek_conflict_marker): New function. (c_parser_error): Detect conflict markers and report them as such. gcc/cp/ChangeLog: * parser.c (cp_lexer_peek_conflict_marker): New function. (cp_parser_error): Detect conflict markers and report them as such. gcc/testsuite/ChangeLog: * c-c++-common/conflict-markers-1.c: New testcase. * c-c++-common/conflict-markers-2.c: Likewise. * c-c++-common/conflict-markers-3.c: Likewise. * c-c++-common/conflict-markers-4.c: Likewise. * c-c++-common/conflict-markers-5.c: Likewise. * c-c++-common/conflict-markers-6.c: Likewise. * c-c++-common/conflict-markers-7.c: Likewise. * c-c++-common/conflict-markers-8.c: Likewise. * c-c++-common/conflict-markers-9.c: Likewise. * c-c++-common/conflict-markers-10.c: Likewise. * c-c++-common/conflict-markers-11.c: Likewise. * g++.dg/conflict-markers-1.C: Likewise. From-SVN: r231712
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ChangeLog | Loading commit data... | |
| ChangeLog.gimple-classes | Loading commit data... | |
| array-notation-common.c | Loading commit data... | |
| c-ada-spec.c | Loading commit data... | |
| c-ada-spec.h | Loading commit data... | |
| c-cilkplus.c | Loading commit data... | |
| c-common.c | Loading commit data... | |
| c-common.def | Loading commit data... | |
| c-common.h | Loading commit data... | |
| c-cppbuiltin.c | Loading commit data... | |
| c-dump.c | Loading commit data... | |
| c-format.c | Loading commit data... | |
| c-format.h | Loading commit data... | |
| c-gimplify.c | Loading commit data... | |
| c-indentation.c | Loading commit data... | |
| c-indentation.h | Loading commit data... | |
| c-lex.c | Loading commit data... | |
| c-objc.h | Loading commit data... | |
| c-omp.c | Loading commit data... | |
| c-opts.c | Loading commit data... | |
| c-pch.c | Loading commit data... | |
| c-ppoutput.c | Loading commit data... | |
| c-pragma.c | Loading commit data... | |
| c-pragma.h | Loading commit data... | |
| c-pretty-print.c | Loading commit data... | |
| c-pretty-print.h | Loading commit data... | |
| c-semantics.c | Loading commit data... | |
| c-target-def.h | Loading commit data... | |
| c-target.def | Loading commit data... | |
| c-target.h | Loading commit data... | |
| c-ubsan.c | Loading commit data... | |
| c-ubsan.h | Loading commit data... | |
| c.opt | Loading commit data... | |
| cilk.c | Loading commit data... | |
| cppspec.c | Loading commit data... | |
| stub-objc.c | Loading commit data... |