mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
update
This commit is contained in:
parent
ff3a5daf25
commit
807321efba
@ -7,6 +7,13 @@ version 0.9.21:
|
|||||||
- line comment fix (reported by Bertram Felgenhauer)
|
- line comment fix (reported by Bertram Felgenhauer)
|
||||||
- initial TMS320C67xx target support (TK)
|
- initial TMS320C67xx target support (TK)
|
||||||
- win32 configure
|
- 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:
|
version 0.9.20:
|
||||||
|
|
||||||
|
10
tcctest.c
10
tcctest.c
@ -1303,6 +1303,16 @@ void bitfield_test(void)
|
|||||||
st1.f5++;
|
st1.f5++;
|
||||||
printf("%d %d %d %d %d\n",
|
printf("%d %d %d %d %d\n",
|
||||||
st1.f1, st1.f2, st1.f3, st1.f4, st1.f5);
|
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)\
|
#define FTEST(prefix, type, fmt)\
|
||||||
|
5
tcctok.h
5
tcctok.h
@ -102,6 +102,8 @@
|
|||||||
DEF(TOK_NORETURN2, "__noreturn__")
|
DEF(TOK_NORETURN2, "__noreturn__")
|
||||||
DEF(TOK_builtin_types_compatible_p, "__builtin_types_compatible_p")
|
DEF(TOK_builtin_types_compatible_p, "__builtin_types_compatible_p")
|
||||||
DEF(TOK_builtin_constant_p, "__builtin_constant_p")
|
DEF(TOK_builtin_constant_p, "__builtin_constant_p")
|
||||||
|
DEF(TOK_REGPARM1, "regparm")
|
||||||
|
DEF(TOK_REGPARM2, "__regparm__")
|
||||||
|
|
||||||
/* builtin functions or variables */
|
/* builtin functions or variables */
|
||||||
DEF(TOK_memcpy, "memcpy")
|
DEF(TOK_memcpy, "memcpy")
|
||||||
@ -184,6 +186,9 @@
|
|||||||
DEF_ASM(text)
|
DEF_ASM(text)
|
||||||
DEF_ASM(data)
|
DEF_ASM(data)
|
||||||
DEF_ASM(bss)
|
DEF_ASM(bss)
|
||||||
|
DEF_ASM(previous)
|
||||||
|
DEF_ASM(fill)
|
||||||
|
DEF_ASM(org)
|
||||||
|
|
||||||
#ifdef TCC_TARGET_I386
|
#ifdef TCC_TARGET_I386
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user