aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-03 14:25:57 +0300
committerseyko <seyko2@gmail.com>2015-03-03 14:25:57 +0300
commitb7b9f9f51170bd1616ee56acfef9c6bf20b9cf3f (patch)
treeb31eb010c27630fdc5eeb8cd9b8c9c1548b3153f /tcc.h
parent50cdccf3efaa13dd11d1533b73fb34e0429d5cd6 (diff)
downloadtinycc-b7b9f9f51170bd1616ee56acfef9c6bf20b9cf3f.tar.gz
tinycc-b7b9f9f51170bd1616ee56acfef9c6bf20b9cf3f.tar.bz2
A gcc preprocessor option -dD added
With this option on a defines are included into the output (inside comments). This will allow to debug a problems like: In file included from math.c:8: In file included from /usr/include/math.h:43: /usr/include/bits/nan.h:52: warning: NAN redefined
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index f268aed..34d3248 100644
--- a/tcc.h
+++ b/tcc.h
@@ -661,6 +661,7 @@ struct TCCState {
LINE_MACRO_OUTPUT_FORMAT_NONE,
LINE_MACRO_OUTPUT_FORMAT_STD,
} Pflag;
+ int dflag; /* for keeping a -dD value */
/* for -MD/-MF: collected dependencies for this compilation */
char **target_deps;
@@ -1155,6 +1156,7 @@ ST_INLN void define_push(int v, int macro_type, int *str, Sym *first_arg);
ST_FUNC void define_undef(Sym *s);
ST_INLN Sym *define_find(int v);
ST_FUNC void free_defines(Sym *b);
+void print_defines(void);
ST_FUNC Sym *label_find(int v);
ST_FUNC Sym *label_push(Sym **ptop, int v, int flags);
ST_FUNC void label_pop(Sym **ptop, Sym *slast);