aboutsummaryrefslogtreecommitdiff
path: root/win32/lib
Commit message (Collapse)AuthorAgeFilesLines
* win32: fix libtcc supportgrischka2013-09-101-6/+0
| | | | | | | | | | | | | | For "tcc -run file.c", I was trying to initialize the FP control in a function in libtcc1.a (_runmain) before calling main. Unfortunately that turned out to cause problems with for example libtcc_test since such usage doesn't necessarily define a 'main' function. So for tcc -run we're back to relying on the FP control word that is set in the startup code of tcc.exe rsp. libtcc.dll. This fixes part of commit 73faaea227a53e365dd75f1dba7a5071c7b5e541
* i386-gen: preserve fp control word in gen_cvt_ftoigrischka2013-08-282-1/+7
| | | | | | | | | | | | | | | | | | | | | | | - Use runtime function for conversion - Also initialize fp with tcc -run on windows This fixes a bug where double x = 1.0; double y = 1.0000000000000001; double z = x < y ? 0 : sqrt (x*x - y*y); caused a bad sqrt because rounding precision for the x < y comparison was different to the one used within the sqrt function. This also fixes a bug where printf("%d, %d", (int)pow(10, 2), (int)pow(10, 2)); would print 100, 99 Unrelated: win32: document relative include & lib lookup win32: normalize_slashes: do not mirror silly gcc behavior This reverts part of commit 8a81f9e1036637e21a47e14fb56bf64133546890 winapi: add missing WINAPI decl. for some functions
* win32: wincrt1.c: include stdlib.h for exit()grischka2013-02-041-0/+1
|
* tccrun: win64: add unwind function table for dynamic codegrischka2011-07-142-8/+2
| | | | | This works only when tcc.exe is compiled using MSC. MinGW does something in the startup code that defeats it.
* tccpe: support leading underscore for symbolsgrischka2011-02-131-0/+2
| | | | | | | | | To make this the default, enable this line in libtcc.c:tcc_new: #if defined(TCC_TARGET_PE) && 0 s->leading_underscore = 1; and then recompile tcc and also libtcc1.a
* build: remove #include "config.h" from target dependent filesgrischka2010-11-261-2/+0
| | | | This is to make cross build of libtcc1.a easier.
* win32: register SEH in startup code (i386 only)grischka2010-10-193-2/+124
| | | | Needed to handle signal() etc. with msvcrt
* win64: add tiny unwind data for setjmp/longjmpgrischka2009-12-201-3/+11
| | | | | | | | | This enables native unwind semantics with longjmp on win64 by putting an entry into the .pdata section for each compiled fuction. Also, the function now use a fixed stack and store arguments into X(%rsp) rather than using push.
* win64: adjust for two args with setjmp(buf,ctx)grischka2009-12-191-0/+8
|
* win32: reformat examples, crt etcgrischka2009-07-182-36/+49
|
* x86-64: chkstk, allocagrischka2009-07-181-21/+53
|
* win64: use new headers from mingwgrischka2009-07-181-0/+617
|
* _controlfp fix (grischka)bellard2005-04-172-84/+84
|
* dos2unixbellard2005-04-177-2587/+2587
|
* win32 mergebellard2005-04-149-0/+2671