changeset 740:8cd40338aee6

minor fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 08 Nov 2010 22:30:10 +0900
parents 0c7a6ae119ba
children ebf5ae3f3863
files Makefile mc-code-ia32.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Nov 08 22:22:46 2010 +0900
+++ b/Makefile	Mon Nov 08 22:30:10 2010 +0900
@@ -1,4 +1,4 @@
-CC = gcc -std=c99 $(CCEXT)
+CC = gcc -std=c99 $(CCEXT) $(M)
 # -O3
 MCFLAGS = -DUSE_CODE_KEYWORD
 CFLAGS = -g -O -Wall -I. $(MCFLAGS)
--- a/mc-code-ia32.c	Mon Nov 08 22:22:46 2010 +0900
+++ b/mc-code-ia32.c	Mon Nov 08 22:30:10 2010 +0900
@@ -1361,7 +1361,7 @@
 #ifdef __APPLE__
     // printf("\tleal _%d(%%rip),%s\n",retcont,register_name(creg,0));
     printf("\tleal _%d-_%d(%%ebx),%s\n",
-	retcont,goffset_label,register_name(reg,0));
+	retcont,goffset_label,register_name(creg,0));
 #else
     printf("\tleal _%d,%s\n",retcont,register_name(creg,0));
 #endif