diff options
| author | Kirill Smelkov <kirr@mns.spb.ru> | 2010-06-21 20:50:32 +0400 |
|---|---|---|
| committer | Kirill Smelkov <kirr@mns.spb.ru> | 2010-06-21 20:50:41 +0400 |
| commit | 9775aea1ab634a74cd4254df85e93d4cbf098cce (patch) | |
| tree | dbdf8823c5c64ef3d4d40749401c9cb129f3521d /tcc.h | |
| parent | 3ba37e1e3f1d942c3115406cdccf01ce84d53bee (diff) | |
| parent | 2fe5210a33556ed18bc878046d39e25964a52840 (diff) | |
| download | tinycc-9775aea1ab634a74cd4254df85e93d4cbf098cce.tar.gz tinycc-9775aea1ab634a74cd4254df85e93d4cbf098cce.tar.bz2 | |
Merge branch 'kirr/tcc-MD' into mob
Hello up there.
I'm trying to change gcc to tcc for faster develpment on slow machines,
and the first obstacle that turned out was lack of dependency generation
on tcc side.
Attached patches try to fix that.
Thanks,
Kirill
* tcc-MD:
.gitignore += tags
tcc: Explicitly require -l<lib> for libraries
Document what tcc_fileextension does
tcc -E: Let output_default be <file>.o instead of a.out
tcc: Draft suppoprt for -MD/-MF options
tcc: Refactor "compute default outfile name" into libtcc function
Add input files/libs and reloc_output switch to TCCState
tcc: Fix typo in error (it's '%s', not '%s)
chmod a-x i386-gen.c
.gitignore += *.o *.a
.cvsignore -> .gitignore
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -397,7 +397,8 @@ typedef struct ASMOperand { #endif struct TCCState { - int output_type; + unsigned output_type : 8; + unsigned reloc_output : 1; BufferedFile **include_stack_ptr; int *ifdef_stack_ptr; @@ -518,6 +519,16 @@ struct TCCState { /* output file for preprocessing */ FILE *outfile; + /* input files and libraries for this compilation */ + char **input_files; + int nb_input_files; + char **input_libs; + int nb_input_libs; + + /* automatically collected dependencies for this compilation */ + char **target_deps; + int nb_target_deps; + /* for tcc_relocate */ int runtime_added; void *runtime_mem; |
