From e946eb2a4109e0de5f8514457f851897a4824c3e Mon Sep 17 00:00:00 2001 From: Vlad Vissoultchev Date: Wed, 6 Apr 2016 18:57:11 +0300 Subject: Implement -dM preprocessor option as in gcc There was already support for -dD option but in contrast -dM dumps only `#define` directives w/o actual preprocessor output. The original -dD output differs from gcc output by additional comment in front of `#define`s so this quirk is left for -dM as well. --- tcc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 2e1e32f..f5d283e 100644 --- a/tcc.h +++ b/tcc.h @@ -712,7 +712,8 @@ struct TCCState { LINE_MACRO_OUTPUT_FORMAT_NONE, LINE_MACRO_OUTPUT_FORMAT_STD } Pflag; /* -P switch */ - int dflag; /* -dX value */ + char dflag; /* -dX value */ + FILE *dffp; /* for -MD/-MF: collected dependencies for this compilation */ char **target_deps; -- cgit v1.3.1