This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, stage1] Better error recovery for merge-conflict markers
- From: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- To: David Malcolm <dmalcolm at redhat dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 20 Mar 2015 19:09:00 +0100
- Subject: Re: [PATCH, stage1] Better error recovery for merge-conflict markers
- Authentication-results: sourceware.org; auth=none
> The patch is implemented within libcpp: any such conflict markers were
> typically injected by tools that work on raw lines of unpreprocessed
> text, so it seemed fitting to do it there.
>
> The error can be suppressed with -fno-detect-conflict-markers for
> the case where you're using the compiler just for the C preprocessor
> and some of the input files legitimately contain such character
> sequences.
Could a new option be avoided (and maintain backwards compatibility)
simply by not detecting this error when only preprocessing?
Cheers,
Manuel.