changeset 320:e998f4315971

[project @ 2004-10-18 00:20:41 by bellard] update
author bellard
date Mon, 18 Oct 2004 00:23:16 +0000
parents 547ec1d1e85a
children ed195f657414
files Changelog tcctest.c tcctok.h
diffstat 3 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Changelog	Mon Oct 18 00:20:26 2004 +0000
+++ b/Changelog	Mon Oct 18 00:23:16 2004 +0000
@@ -7,6 +7,13 @@
 - 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:
 
--- a/tcctest.c	Mon Oct 18 00:20:26 2004 +0000
+++ b/tcctest.c	Mon Oct 18 00:23:16 2004 +0000
@@ -1303,6 +1303,16 @@
     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)\
--- a/tcctok.h	Mon Oct 18 00:20:26 2004 +0000
+++ b/tcctok.h	Mon Oct 18 00:23:16 2004 +0000
@@ -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