aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Revert "use int for ssize_t, (u)intptr_t instead of long in stddef.h"Matthias Gatto2017-07-261-8/+1
| | | | | | This reverts commit 52622c3c0365ad497ce1188e433ac5f0a721c283. Because 28b7c9 was right.
* use int for ssize_t, (u)intptr_t instead of long in stddef.hMatthias Gatto2017-07-251-1/+8
|
* remove inside_generic hackMatthias Gatto2017-07-241-0/+8
| | | | | define uint64_t and int64_t as 'long' instead of 'long long' when __LP64__ is define.
* Add support of musl-libcMarc Vertes2017-04-201-0/+4
| | | | The port is functional. Bound checking is not supported yet.
* Avoid conflicting definition for va_list on 64-bit MacsDavid Mertens2016-08-041-0/+3
|
* win64: fix va_arggrischka2016-07-101-1/+2
| | | | | | | | | | | fixes 5c35ba66c5ade4713bbd9c005e66889f6d7db293 Implementation was consistent within tcc but incompatible with the ABI (for example library functions vprintf etc) Also: - tccpp.c/get_tok_str() : avoid "unknown format "%llu" warning - x86_64_gen.c/gen_vla_alloc() : fix vstack leak
* include/stddef.h: define NULL only if undefinedseyko2015-10-251-0/+3
|
* Add arm64 (AArch64) as a target architecture.Edmund Grimley Evans2015-02-231-0/+13
|
* Corrected spelling mistakes in comments and stringsVincent Lefevre2014-04-071-1/+1
|
* stdbool.h: Make conformant to ISOC99Michael Matz2014-04-071-0/+1
| | | | | | For conformance to ISO C the stdbool.h header has to provide the macro __bool_true_false_are_defined (defined to 1). Yep, that name is really in the standard.
* Declare wint_t in <stddef.h> when neededMichael Matz2014-04-071-0/+15
| | | | | Some old glibcs <wctype.h> require <stddef.h> to provide wint_t, accomodate them.
* x86_64: pass va_list as pointerDaniel Glöckner2014-03-301-4/+4
| | | | | | The ABI requires that va_list is passed as a pointer although its contents is a kept in a structure. Therefore make it a single element array.
* New implementation of va_list/va_start/var_copy that do not use dynamic ↵mingodad2014-03-281-9/+19
| | | | memory, with this when compiling fossil-scm with tcc on linux X86_64 it works fine.
* Fixed the LDBL_* macros in include/float.h for x86-64: as saidVincent Lefevre2014-01-121-1/+1
| | | | | | when x86-64 support was added, "for long double, we use x87 FPU". And indeed, tests show that Intel's extended precision is used, not double precision.
* Add va_* macro implementation for ARMThomas Preud'homme2013-11-251-0/+11
|
* Fixed x86-64 long double passing.James Lyon2013-04-261-2/+2
| | | | | | long double arguments require 16-byte alignment on the stack, which requires adjustment when the the stack offset is not an evven number of 8-byte words.
* Sorted out CMake on x86-64 and fixed silly XMM# bug introduced when working ↵James Lyon2013-04-251-78/+0
| | | | | | | | | on Win64 stdargs. I removed the XMM6/7 registers from the register list because they are not used on Win64 however they are necessary for parameter passing on x86-64. I have now restored them but not marked them with RC_FLOAT so they will not be used except for parameter passing.
* 64-bit tests now pass (well, nearly).James Lyon2013-04-241-3/+3
| | | | | tcctest1-3 fail, but this appears to be due to bugs in GCC rather than TCC (from manual inspection of the output).
* win32: _mingw.h: do not undef NULLgrischka2013-01-241-1/+1
| | | | | | | | | Not wise if stddef.h was already included. This is related to commit 3aa26a794e24a298493a2bc9d70fbd9aebf6437a Instead hack stddef.h to have identical definition and thus avoid the issue mentionned there.
* Remove semicolon in x86-64 va_arg definition.Thomas Preud'homme2011-08-051-1/+1
|
* Support struct arguments with stdarg.hShinichiro Hamaji2010-12-281-42/+10
| | | | | | | | - add __builtin_va_arg_types to check how arguments were passed - move most code of stdarg into libtcc1.c - remove __builtin_malloc and __builtin_free - add a test case based on the bug report (http://www.mail-archive.com/tinycc-devel@nongnu.org/msg03036.html)
* win64: defined size_t and ptrdiff_t to unsigned long longgrischka2010-01-141-6/+14
|
* win64: use new headers from mingwgrischka2009-07-182-9/+16
|
* drop alloca #definegrischka2009-05-162-24/+2
| | | | | | | (Because GNU's alloca.h unconditionally #undef's alloca) Also, remove gcc specific sections in headers. and instead change tests such that gcc does not use them.
* Return value of exit should be void.Shinichiro Hamaji2009-04-181-1/+1
|
* fix makefiles etc for subdirsgrischka2009-04-181-0/+1
|
* new subdirs: include, lib, testsgrischka2009-04-186-0/+264