changeset 364:c29eebf3eaf4 local-label-indirect-goto

local label and indirect goto.
author kono
date Tue, 06 Jul 2004 17:55:40 +0900
parents f3f2b7906d50
children 5ac17fa9d7e0
files Changes mc-code-ia32.c mc-code-mips.c mc-macro.c
diffstat 4 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Changes	Tue Jul 06 17:04:31 2004 +0900
+++ b/Changes	Tue Jul 06 17:55:40 2004 +0900
@@ -5516,3 +5516,10 @@
             eval_if l;
      eval_if
 みたいな感じ?
+
+Tue Jul  6 17:46:50 JST 2004
+
+type と tag を大域にするんじゃなくて、tag だったら大域、
+type は、LTDECL のみで局所っていうようにするべきだよね。
+
+static が global になっちゃってるな。
--- a/mc-code-ia32.c	Tue Jul 06 17:04:31 2004 +0900
+++ b/mc-code-ia32.c	Tue Jul 06 17:55:40 2004 +0900
@@ -1339,6 +1339,7 @@
 
 void
 code_indirect_jmp(int e2) {
+    use_int(e2);
     printf("\tjmp *%s\n",register_name(e2,0));
 }
 
--- a/mc-code-mips.c	Tue Jul 06 17:04:31 2004 +0900
+++ b/mc-code-mips.c	Tue Jul 06 17:55:40 2004 +0900
@@ -1264,7 +1264,7 @@
 void
 code_label_value(int label,int reg) {
     use_int(reg);
-    printf("\tla %s,L_%d\n",register_name(reg),label);
+    printf("\tla %s,$L_%d\n",register_name(reg),label);
     return;
 }
 
--- a/mc-macro.c	Tue Jul 06 17:04:31 2004 +0900
+++ b/mc-macro.c	Tue Jul 06 17:55:40 2004 +0900
@@ -165,7 +165,7 @@
 static int macro_if_skip ;
 
 /* there may extra non-terminate comment after #if/#else directive */
-/*      #endif /* hoge						   */
+/*      #endif / * hoge						   */
 /*           */
 /*                                                                 */