aboutsummaryrefslogtreecommitdiff
path: root/tests/pp
Commit message (Collapse)AuthorAgeFilesLines
* OpenBSD does not support -v option in rm command.Christian Jullien2016-10-151-1/+1
|
* tccpp : "tcc -E -P" : suppress empty linesgrischka2016-10-095-8/+29
| | | | | | | | | Also: - regenerate all tests/pp/*.expect with gcc - test "insert one space" feature - test "0x1E-1" in asm mode case - PARSE_FLAG_SPACES: ignore \f\v\r better - tcc.h: move some things
* build: restore out-of-tree supportgrischka2016-10-011-3/+8
|
* build: revert Makefiles to 0.9.26 state (mostly)grischka2016-10-011-5/+4
| | | | | | | | | | | | Except - that libtcc1.a is now installed in subdirs i386/ etc. - the support for arm and arm64 - some of the "Darwin" fixes - tests are mosly unchanged Also - removed the "legacy links for cross compilers" (was total mess) - removed "out-of-tree" build support (was broken anyway)
* test/pp: cleanupgrischka2016-10-016-74/+20
|
* Insert spaces between certain tokens when tcc is invoked with -E.Edmund Grimley Evans2016-05-092-0/+25
| | | | | | Insert a space when it is required to prevent mistokenisation of the output, and also in a few cases where it is not strictly required, imitating GCC's behaviour.
* tccgen: scopes levels for local symbols (update 2)grischka2016-05-061-6/+6
| | | | | | | allow typedef int xxx; typedef int xxx; in the same scope as long as it is the same type
* output space after TOK_PPNUM which followed by '+' or '-'seyko2016-05-016-5/+52
| | | | | | * correct -E output for the case ++ + ++ concatenation do this only for expanded from macro string and only when tcc_state->output_type == TCC_OUTPUT_PREPROCESS
* Revert "Fix tests Makefiles on Windows"Vlad Vissoultchev2016-04-171-8/+1
| | | | This reverts commit fa2472c17246206ce6947475782de17245eceeea.
* fix preprocessing *.S with ` ' chars in #commentsseyko2016-04-142-0/+12
| | | | | with a test program. Problem detected when trying to compile linux-2.4.37.9 with tcc.
* Identifiers can start and/or contain '.' in *.Sseyko2016-04-053-1/+21
| | | | | | | | | | | | | | | | | modified version of the old one which don't allow '.' in #define Identifiers. This allow correctly preprocess the following code in *.S #define SRC(y...) \ 9999: y; \ .section __ex_table, "a"; \ .long 9999b, 6001f ; \ // .previous SRC(1: movw (%esi), %bx) 6001: A test included.
* Fix tests Makefiles on WindowsVlad Vissoultchev2016-03-141-1/+8
| | | | Compiled tcc.exe location is under $(top_srcdir)/win32
* Revert all of my changes to directories & codingstyle.gus knight2015-07-291-1/+1
|
* Reorganize the source tree.gus knight2015-07-271-1/+1
| | | | | | | | | | * Documentation is now in "docs". * Source code is now in "src". * Misc. fixes here and there so that everything still works. I think I got everything in this commit, but I only tested this on Linux (Make) and Windows (CMake), so I might've messed something up on other platforms...
* tccpp: fix issues, add testsgrischka2015-05-0923-0/+193
* fix some macro expansion issues * add some pp tests in tests/pp * improved tcc -E output for better diff'ability * remove -dD feature (quirky code, exotic feature, didn't work well) Based partially on ideas / researches from PipCet Some issues remain with VA_ARGS macros (if used in a rather tricky way). Also, to keep it simple, the pp doesn't automtically add any extra spaces to separate tokens which otherwise would form wrong tokens if re-read from tcc -E output (such as '+' '=') GCC does that, other compilers don't. * cleanups - #line 01 "file" / # 01 "file" processing - #pragma comment(lib,"foo") - tcc -E: forward some pragmas to output (pack, comment(lib)) - fix macro parameter list parsing mess from a3fc54345949535524d01319e1ca6378b7c2c201 a715d7143d9d17da17e67fec6af1c01409a71a31 (some coffee might help, next time ;) - introduce TOK_PPSTR - to have character constants as written in the file (similar to TOK_PPNUM) - allow '\' appear in macros - new functions begin/end_macro to: - fix switching macro levels during expansion - allow unget_tok to unget more than one tok - slight speedup by using bitflags in isidnum_table Also: - x86_64.c : fix decl after statements - i386-gen,c : fix a vstack leak with VLA on windows - configure/Makefile : build on windows (MSYS) was broken - tcc_warning: fflush stderr to keep output order (win32)