diff --git a/Changelog b/Changelog index 8b2efdff..6864475e 100644 --- a/Changelog +++ b/Changelog @@ -7,6 +7,13 @@ version 0.9.21: - line comment fix (reported by Bertram Felgenhauer) - initial TMS320C67xx target support (TK) - win32 configure +- regparm() attribute +- many built-in assembler fixes +- added '.org', '.fill' and '.previous' assembler directives +- '-fno-common' option +- '-Ttext' linker option +- section alignment fixes +- bit fields fixes version 0.9.20: diff --git a/tcctest.c b/tcctest.c index 2b759168..7113428b 100644 --- a/tcctest.c +++ b/tcctest.c @@ -1303,6 +1303,16 @@ void bitfield_test(void) st1.f5++; printf("%d %d %d %d %d\n", st1.f1, st1.f2, st1.f3, st1.f4, st1.f5); + + st1.f1 = 7; + if (st1.f1 == -1) + printf("st1.f1 == -1\n"); + else + printf("st1.f1 != -1\n"); + if (st1.f2 == -1) + printf("st1.f2 == -1\n"); + else + printf("st1.f2 != -1\n"); } #define FTEST(prefix, type, fmt)\ diff --git a/tcctok.h b/tcctok.h index 85643dd4..dc9849ae 100644 --- a/tcctok.h +++ b/tcctok.h @@ -102,6 +102,8 @@ DEF(TOK_NORETURN2, "__noreturn__") DEF(TOK_builtin_types_compatible_p, "__builtin_types_compatible_p") DEF(TOK_builtin_constant_p, "__builtin_constant_p") + DEF(TOK_REGPARM1, "regparm") + DEF(TOK_REGPARM2, "__regparm__") /* builtin functions or variables */ DEF(TOK_memcpy, "memcpy") @@ -184,6 +186,9 @@ DEF_ASM(text) DEF_ASM(data) DEF_ASM(bss) + DEF_ASM(previous) + DEF_ASM(fill) + DEF_ASM(org) #ifdef TCC_TARGET_I386