diff options
| author | grischka <grischka> | 2016-10-04 17:31:40 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2016-10-04 17:31:40 +0200 |
| commit | 1c4cf1855632d712a67f3cc28e43469f8b5f936a (patch) | |
| tree | 9544f2804527c4847f0783211766d1378c3e451a /libtcc.c | |
| parent | 5805b07218aef3c1049b5db9d89841d383ee917d (diff) | |
| download | tinycc-1c4cf1855632d712a67f3cc28e43469f8b5f936a.tar.gz tinycc-1c4cf1855632d712a67f3cc28e43469f8b5f936a.tar.bz2 | |
tccpp: no cache for include if #elif seen
#ifndef guards are cached, however after #elif on the
same level, the file must be re-read.
Also: preprocess asm as such even when there is no
assembler (arm).
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1334,13 +1334,11 @@ ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags) tcc_strdup(filename)); parse_flags = 0; -#ifdef CONFIG_TCC_ASM /* if .S file, define __ASSEMBLER__ like gcc does */ if (filetype == AFF_TYPE_ASM || filetype == AFF_TYPE_ASMPP) { tcc_define_symbol(s1, "__ASSEMBLER__", NULL); parse_flags = PARSE_FLAG_ASM_FILE; } -#endif if (flags & AFF_PREPROCESS) { ret = tcc_preprocess(s1); |
