From 50cdccf3efaa13dd11d1533b73fb34e0429d5cd6 Mon Sep 17 00:00:00 2001 From: seyko Date: Tue, 3 Mar 2015 14:19:14 +0300 Subject: Added a gcc preprocessor options -P, -P1 tcc -E -P do not output a #line directive, a gcc compatible option tcc -E -P1 don't follow a gcc preprocessor style and do output a standard #line directive. In such case we don't lose a location info when we going to compile a resulting file wtith a compiler not understanding a gnu style line info. --- tcc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index e77a3fb..f268aed 100644 --- a/tcc.h +++ b/tcc.h @@ -656,6 +656,11 @@ struct TCCState { /* output file for preprocessing (-E) */ FILE *ppfp; + enum { + LINE_MACRO_OUTPUT_FORMAT_GCC, + LINE_MACRO_OUTPUT_FORMAT_NONE, + LINE_MACRO_OUTPUT_FORMAT_STD, + } Pflag; /* for -MD/-MF: collected dependencies for this compilation */ char **target_deps; -- cgit v1.3.1