aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* VLA fix [1/3]: added testcase demonstrating VLA bugJoe Soroka2011-04-081-1/+6
|
* VLA bcheck works via bound alloca; add test, remove warningJoe Soroka2011-04-061-1/+33
|
* re-apply VLA by Thomas Preud'hommeJoe Soroka2011-04-061-0/+22
|
* sizeof(struct with "flexible array member") is wrongJoe Soroka2011-03-181-0/+1
|
* fix c99 for-loop init decl scope (thanks: grischka)Joe Soroka2011-03-081-0/+2
| | | | see http://lists.nongnu.org/archive/html/tinycc-devel/2011-03/msg00005.html
* support c99 for-loop init declsJoe Soroka2011-03-072-1/+5
|
* use new weaken_symbol() to fix another real-world corner caseJoe Soroka2011-03-071-0/+3
|
* weak redefinition of a symbol should weaken the originalJoe Soroka2011-03-071-0/+4
|
* __typeof(t) should not include storage modifiers of tJoe Soroka2011-03-061-0/+5
|
* handle post-asm-label attributes on variablesJoe Soroka2011-03-031-0/+14
|
* tcc: fix weak attribute handlingJoe Soroka2011-03-021-0/+8
|
* i386-asm: support "pause" opcodeJoe Soroka2011-02-241-0/+1
|
* tccasm: support alternate .type syntaxesJoe Soroka2011-02-241-0/+14
|
* tccpp: treat gas comments in .S files as raw text, not tokensJoe Soroka2011-02-231-0/+1
|
* fix warning for tcctest.c introduced with my last commitJaroslav Kysela2011-02-221-1/+1
|
* fix another static struct init issue (arrays with unknown size at end)Jaroslav Kysela2011-02-221-26/+43
|
* Fix complex static initializers (handle additional '}' and '{' brackets)Jaroslav Kysela2011-02-221-0/+26
| | | | | | - added an example to test suite - the "warning: assignment discards qualifiers from pointer target type" is present but harmless
* Revert "Implement C99 Variable Length Arrays"Thomas Preud'homme2011-02-051-22/+0
| | | | This reverts commit a5a50eaafeea0d3ca47bc8fb6baf983743470c60.
* Revert "Disable C99 VLA when alloca is unavailable."Thomas Preud'homme2011-02-051-2/+2
| | | | This reverts commit e3e5d4ad7a475e30ea13ad1ba9f23e6210d5d431.
* Disable C99 VLA when alloca is unavailable.Thomas Preud'homme2011-02-041-2/+2
| | | | | | | | | | | | | | | * Disable C99 VLA detection when alloca is unavailable and protect the new reference to TOK_alloca in decl_initializer in order to compile and run for architecture without working alloca. Not all code of C99 VLA is commented as it would required many ifdef stanza. Just the detection is commented so that VT_VLA is never set any type and the C99 VLA code is compiled but never called. However vpush_global_sym(&func_old_type, TOK_alloca) in decl_initializer needs to be protected by an ifdef stanza as well because it uses TOK_alloca. * include alloca and C99 VLA tests according to availability of TOK_alloca instead of relying on the current architecture
* Implement C99 Variable Length ArraysThomas Preud'homme2011-02-041-0/+22
| | | | | | | Implement C99 Variable Length Arrays in tinycc: - Support VLA with multiple level (nested vla) - Update documentation with regards to VT_VLA - Add a testsuite in tcctest.c
* tcctest: plugged memleak (was polluting valgrind reports)Joe Soroka2011-02-011-0/+1
|
* tccasm: accept bracketed offset expressionsJoe Soroka2011-02-011-0/+1
|
* tccasm: accept "fmul/fadd st(0),st(n)" (dietlibc ipow/atanh)Joe Soroka2011-02-011-0/+4
|
* tccasm: allow one-line prefix+op things like "rep stosb"Joe Soroka2011-02-012-0/+61
|
* tccasm: define __ASSEMBLER__ for .S files, like gcc doesJoe Soroka2011-02-011-0/+4
|
* tccpp: fix bug in handling of recursive macrosJoe Soroka2011-02-011-0/+31
|
* weak definitions overrule non-weak prototypesJoe Soroka2011-02-012-2/+15
|
* support weak attribute on variablesJoe Soroka2011-02-011-0/+18
|
* asmtest: avoid testing against complex nop alignment in gasJoe Soroka2011-01-231-1/+2
| | | | | | | | | | | | | | | | | .align #,0x90 in gas ignores the 0x90 and outputs any kind of nop it feels like. the one avoided by this patch is a 7 byte nop, which gas has been doing since at least 1999: http://sourceware.org/ml/binutils/1999-10/msg00083.html In order to match what gas does, we would need to make code alignment target-specific, import a lot of code, and face the question: exactly which gas {version,target,tune} combo are we trying to match? see i386_align_code in: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/config/tc-i386.c?annotate=1.460&cvsroot=src The smart noppery is turned on via the special casing of 0x90 at line 438 in md_do_align in: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/config/tc-i386.h?annotate=1.1&cvsroot=src
* i386-asm: accept retl as a synonym for retJoe Soroka2011-01-211-0/+2
|
* accept multiple comma separated symbols for .globl/.global directives, like ↵Joe Soroka2011-01-201-0/+5
| | | | gas does
* Support struct arguments with stdarg.hShinichiro Hamaji2010-12-281-0/+23
| | | | | | | | - 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)
* Test va_copy in tcctest.cShinichiro Hamaji2010-12-281-2/+4
|
* Copy tcclib.h to tests directory so GCC uses its own headers.Shinichiro Hamaji2010-12-071-1/+3
| | | | | | | http://repo.or.cz/w/tinycc.git/commit/86ffc4812952f11a35afa19b24a3e6d1a12f4490 removed this cp command. However, it was necessary to pass tests on x86-64 because include/stdarg.h is different from GCC's definition on x86-64.
* make: new lib/Makefile for libtcc1.a on more platformsgrischka2010-12-041-11/+13
| | | | | | win32/64 cross-compilers now build libtcc1.a and install it together with the windows headers in a 'win32' sub-directory of TCCDIR.
* Fix casts from 32bit integer types to 64bit integer types.Shinichiro Hamaji2010-08-311-0/+8
| | | | | | | This bug was reported in http://lists.gnu.org/archive/html/tinycc-devel/2010-08/msg00050.html In this case, we should not emit any code when we cast from VT_FUNC to VT_PTR.
* Fix alignment around struct for SSE.Shinichiro Hamaji2010-08-271-3/+3
| | | | | | | - Fix a wrong calculation for size of struct - Handle cases where struct size isn't multple of 8 - Recover vstack after memcpy for pushing struct - Add a float parameter for struct_assign_test1 to check SSE alignment
* Fix bashims in configure and gcctestsuite.sh.Thomas Preud'homme2010-05-261-4/+4
| | | | | | | | configure and gcctestsuite.sh shell scripts contains bashisms although being bourne shell script. This patch fixes the following bashisms: * Use of $RANDOM variable (replaced by reading in /dev/urandom) * Use == in tests instead of just = * Use $[] for arithmetic computation istead of $(())
* update Makefilesgrischka2009-12-201-1/+1
|
* tcc_relocate: revert to 0.9.24 behaviorgrischka2009-12-191-13/+5
|
* x86-64: change the type of size_t and ptrdiff_t.Shinichiro Hamaji2009-08-241-0/+2
| | | | size_t and ptrdiff_t should be unsigned long and long, respectively.
* x86-64: chkstk, allocagrischka2009-07-182-2/+21
|
* fix asmtest (somehow), update Makefilesgrischka2009-07-182-7/+8
|
* bcheck: restore malloc hooks when donegrischka2009-07-181-6/+7
|
* drop alloca #definegrischka2009-05-162-2/+17
| | | | | | | (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.
* cleanup makefilesgrischka2009-04-191-2/+2
|
* Fixes for tests/Makefile.Shinichiro Hamaji2009-04-181-3/+3
| | | | | - On x86-64, we need $(TARGET) in RUN_TCC. - s/RuN_TCC/RUN_TCC/
* fix makefiles etc for subdirsgrischka2009-04-182-1/+145
|
* new subdirs: include, lib, testsgrischka2009-04-185-0/+3077