changeset 324:575481408653

minor fix
author kono
date Sat, 19 Jun 2004 20:05:58 +0900
parents d5cb084fc3f4
children b51b87ddf60c
files Changes mc-code-powerpc.c mc-parse.c
diffstat 3 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Changes	Sat Jun 19 17:50:40 2004 +0900
+++ b/Changes	Sat Jun 19 20:05:58 2004 +0900
@@ -5021,5 +5021,10 @@
 
 って言う感じで typedef の struct が後だしジャンケンされてしまう。
 後ろの struct def は、typedef された型名を知りようがない。うん。
-
-
+0 なら、type に nptr が入っているので、それのfiled listを探せば良い。
+
+やっぱbit filedしないとだめか。どうするのかな。type の拡張?
+
+bit field 実装したくないよ〜
+
+まぁ、構造体の代入と同じような形にすれば良いわけだけど。
--- a/mc-code-powerpc.c	Sat Jun 19 17:50:40 2004 +0900
+++ b/mc-code-powerpc.c	Sat Jun 19 20:05:58 2004 +0900
@@ -11,6 +11,8 @@
     0
 };
 
+// __builtin_expect(a,t) branch prediction
+
 char *init_src = "\
 #define __ppc__ 1\n\
 #define __BIG_ENDIAN__ 1\n\
@@ -19,6 +21,7 @@
 #define __builtin_va_start(ap,arg) ap=(((int)(&arg))+sizeof(arg))\n\
 #define __builtin_va_arg(ap,type)  (*((type *)ap)++)\n\
 #define alloca __builtin_alloca\n\
+#define __builtin_expect(a,t) a\n\
 ";
 
 #define TEXT_EMIT_MODE 0
--- a/mc-parse.c	Sat Jun 19 17:50:40 2004 +0900
+++ b/mc-parse.c	Sat Jun 19 20:05:58 2004 +0900
@@ -322,6 +322,7 @@
     reserve("volatile",VOLATILE);
     reserve("__volatile__",VOLATILE);
     reserve("typeof",TYPEOF);
+    reserve("__typeof__",TYPEOF);
     reserve("__builtin_alloca",ALLOCA);
 #if ASM_CODE
     reserve("asm",ASM);
@@ -2308,6 +2309,7 @@
     }
     checksym(RPAR);
     gexpr(list3(ASM,list4(asm0,input,out,opt),e1),0);
+    checksym(SM);
 }
 #endif