tcctest: add back testXb (self compile with -b)

- Thanks to Kirill "tcc -b itself" should work now
  (was removed in d5f4df09ff)

Also:

- tests/Makefile:
  - fix spurious --I from 767410b875
  - lookup boundtest.c via VPATH (for out-of-tree build)
  - test[123]b?: fail on diff error
  - Windows: test3 now works (from e31579b076)
  - abitest: a libtcc.a made by gcc is not usable for tcc
    on WIndows - using source instead (libtcc.c)

- tccpe:
  - avoid gcc warning (x86_64)
This commit is contained in:
grischka
2014-01-21 13:25:14 +01:00
parent 48ad93983f
commit 32a4962593
3 changed files with 25 additions and 21 deletions

View File

@ -1803,7 +1803,7 @@ static void pe_add_runtime(TCCState *s1, struct pe_info *pe)
s1->runtime_main = start_symbol;
#endif
} else {
pe->start_addr = (DWORD)tcc_get_symbol_err(s1, start_symbol);
pe->start_addr = (DWORD)(uintptr_t)tcc_get_symbol_err(s1, start_symbol);
}
pe->type = pe_type;