diff options
| author | grischka <grischka> | 2014-01-06 19:07:08 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2014-01-06 19:07:08 +0100 |
| commit | 4ad186c5ef61477030ca37372f9d6c6d03681015 (patch) | |
| tree | 027dc0291eeb4bf77d521ac7a69cf40e23f2ae4d /tccelf.c | |
| parent | 8efaa711904b897f9a4821656ac10f980c5ae9fe (diff) | |
| download | tinycc-4ad186c5ef61477030ca37372f9d6c6d03681015.tar.gz tinycc-4ad186c5ef61477030ca37372f9d6c6d03681015.tar.bz2 | |
i386: use __fixdfdi instead of __tcc_cvt_ftol
Variants __fixsfdi/__fixxfdi are not needed for now because
the value is converted to double always.
Also:
- remove __tcc_fpinit for unix as it seems redundant by the
__setfpucw call in the startup code
- avoid reference to s->runtime_main in cross compilers
- configure: fix --with-libgcc help
- tcctok.h: cleanup
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -178,11 +178,11 @@ LIBTCCAPI void *tcc_get_symbol(TCCState *s, const char *name) return (void*)(uintptr_t)get_elf_sym_addr(s, name, 0); } -#ifdef TCC_IS_NATIVE +#if defined TCC_IS_NATIVE || defined TCC_TARGET_PE /* return elf symbol value or error */ ST_FUNC void* tcc_get_symbol_err(TCCState *s, const char *name) { - return (void*)get_elf_sym_addr(s, name, 1); + return (void*)(uintptr_t)get_elf_sym_addr(s, name, 1); } #endif |
