diff options
| author | Vlad Vissoultchev <wqweto@gmail.com> | 2016-04-06 18:57:11 +0300 |
|---|---|---|
| committer | Vlad Vissoultchev <wqweto@gmail.com> | 2016-04-06 18:57:11 +0300 |
| commit | e946eb2a4109e0de5f8514457f851897a4824c3e (patch) | |
| tree | b5b0b86b298e2d2c8bb5cb78e1573d10978de43e /tcc.h | |
| parent | 0691b7630b89bf3de5f7691802cb923bd7c1fd99 (diff) | |
| download | tinycc-e946eb2a4109e0de5f8514457f851897a4824c3e.tar.gz tinycc-e946eb2a4109e0de5f8514457f851897a4824c3e.tar.bz2 | |
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.
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |
