Vlad Vissoultchev
acc8f602e5
Revert "Fix tests Makefiles on Windows"
...
This reverts commit fa2472c172 .
2016-04-17 17:24:17 +03:00
Vlad Vissoultchev
f021a7cd94
Add travis tests integration
2016-04-17 17:24:07 +03:00
Vlad Vissoultchev
34feee0ed6
Move utility functions trimfront/back to tccpp.c
...
These are used in `libtcc.c` now and cannot remain in `tccpe.c`
2016-04-13 14:33:21 +03:00
Vlad Vissoultchev
cb5f6b063b
Simplify @listfiles parsing
...
This moves listfiles parsing inline in `tcc_parse_args1`
2016-04-13 11:35:24 +03:00
Vlad Vissoultchev
b3782c3cf5
Better pragma once guard
...
This takes care of case-insensitive filenames (like on win32)
2016-04-13 11:18:40 +03:00
Vlad Vissoultchev
98ffeaa0c5
win32: Better VS2015 solution and project files
...
These include all header and source files from source directory
2016-04-13 11:10:13 +03:00
Vlad Vissoultchev
810a677d32
tccpp.c: Guard against ppfp being NULL
...
Missed these in e946eb2a41
2016-04-13 10:58:42 +03:00
Vlad Vissoultchev
174d06a3ff
Skip math library if not found when -lm option is used
...
This only silences "cannot find library" error and allows Makefiles targeting gcc to not complain about missing libraries
If there is custom libm then standard handling applies.
2016-04-08 12:18:31 +03:00
Vlad Vissoultchev
e946eb2a41
Implement -dM preprocessor option as in gcc
...
There was already support for -dD option but in contrast -dM dumps only `#define` directives w/o actual preprocessor output.
The original -dD output differs from gcc output by additional comment in front of `#define`s so this quirk is left for -dM as well.
2016-04-06 18:57:11 +03:00
Vlad Vissoultchev
0691b7630b
tccgen.c: Allow type attributes to prefix enum/struct/union name
...
From gcc docs: "You may also specify attributes between the enum, struct or union tag and the name of the type rather than after the closing brace."
Adds `82_attribs_position.c` in `tests/tests2`
2016-04-06 14:32:52 +03:00
Vlad Vissoultchev
aa1ed616eb
Move all GAS directives under TOK_ASMDIR prefix to include leading '.'
...
Use only these tokens in `asm_parse_directive` and don't recycle others' tokens (like TOK_SECTION1)
2016-03-15 10:00:50 +02:00
Vlad Vissoultchev
05ec6654a7
Identifiers can start and/or contain '.' in PARSE_FLAG_ASM_FILE
...
Including labels, directives and section names
2016-03-14 18:37:39 +02:00
Vlad Vissoultchev
17395ea507
tccpp.c: Fix failing PPTest 03 by reverting rogue modification in macro_arg_subst
2016-03-14 18:26:41 +02:00
Vlad Vissoultchev
fa2472c172
Fix tests Makefiles on Windows
...
Compiled tcc.exe location is under $(top_srcdir)/win32
2016-03-14 18:11:49 +02:00
Vlad Vissoultchev
5175b1ad87
Use proper ifdef for x64 check in winnt.h
2016-03-14 18:07:38 +02:00
Vlad Vissoultchev
712eca44d5
Revert spawnvp param cast and use no-incompatible-pointer-types in build-tcc.bat
2016-03-14 18:06:42 +02:00
Vlad Vissoultchev
9d778c7bb6
Keep lvalue category on structs when evaluating ternary operator
2016-03-13 04:32:18 +02:00
Vlad Vissoultchev
32755dbea9
Migrate static STRING_MAX_SIZE buffers to CString instances for large macros expansion
2016-03-13 04:26:45 +02:00
Vlad Vissoultchev
d715ebdae0
Add x64 SEH decls. Add exports to kernel32.def
2016-03-13 04:23:15 +02:00
Vlad Vissoultchev
95aac21130
Move WIN32_LEAN_AND_MEAN to windows.h (silence redeclarations)
2016-03-13 04:21:23 +02:00
Vlad Vissoultchev
2dc7161453
Win32 build script handles x64 and debug params
2016-03-13 04:19:32 +02:00
Vlad Vissoultchev
8e4d64be2f
Silence FIXME and compiler warning
2016-03-13 04:18:43 +02:00