# HG changeset patch # User Shinji KONO # Date 1397046341 -32400 # Node ID 7aa39f5128f98dc2b7e6eb1c3b0a6fa6279ead0c # Parent 553cd297b0a811689ba110da245bb9a7f502dacc fix diff -r 553cd297b0a8 -r 7aa39f5128f9 Makefile --- a/Makefile Wed Apr 09 21:21:26 2014 +0900 +++ b/Makefile Wed Apr 09 21:25:41 2014 +0900 @@ -1,4 +1,4 @@ -GCC = gcc +GCC = clang CC = $(GCC) -std=c99 $(CCEXT) $(M) -fgnu89-inline # -O3 # MCFLAG = -DUSE_CODE_KEYWORD diff -r 553cd297b0a8 -r 7aa39f5128f9 mc-code-i64.c --- a/mc-code-i64.c Wed Apr 09 21:21:26 2014 +0900 +++ b/mc-code-i64.c Wed Apr 09 21:25:41 2014 +0900 @@ -139,6 +139,7 @@ #define __GXX_ABI_VERSION 1002\n\ #define __FLT_MIN_EXP__ (-125)\n\ #define __x86_64 1\n\ +#define __x86_64__ 1\n\ #define __DBL_MIN__ 2.2250738585072014e-308\n\ #define __LP64__ 1\n\ #define __DBL_HAS_QUIET_NAN__ 1\n\ diff -r 553cd297b0a8 -r 7aa39f5128f9 mc-parse.c --- a/mc-parse.c Wed Apr 09 21:21:26 2014 +0900 +++ b/mc-parse.c Wed Apr 09 21:25:41 2014 +0900 @@ -51,7 +51,7 @@ extern double strtod(const char *nptr, char **endptr); #endif -int parse_mode = 1; // generate parse tree for all code +int parse_mode = 0; // generate parse tree for all code static int HEAP_REPORT = 0; static int lfree_type_limit; // debugging purpose