# HG changeset patch # User Nobuyasu Oshiro # Date 1321956970 -32400 # Node ID c533933fbacc40abdacbdc159942e231ffcdd664 # Parent 6ddb6444195b3f91cb31135ced0252954339c3aa modify __const__ diff -r 6ddb6444195b -r c533933fbacc mc-code-i64.c --- a/mc-code-i64.c Tue Nov 22 10:51:32 2011 +0900 +++ b/mc-code-i64.c Tue Nov 22 19:16:10 2011 +0900 @@ -213,6 +213,7 @@ #define __llvm__ 1\n\ #define __GNUC_GNU_INLINE__ 1\n\ #define __SSE3__ 1\n\ +#define __extension__\n\ " #else @@ -341,6 +342,7 @@ #define __DEC128_MANT_DIG__ 34 \n\ #define __LDBL_MIN_10_EXP__ (-4931) \n\ #define __SSE3__ 1 \n\ +#define __extension__\n\ " #endif @@ -373,7 +375,7 @@ #define __extension__\n\ // #define __restrict\n\ #define __flexarr\n\ -#define __const const\n\ +//#define __const const\n\ #define __THORW\n\ // #define __attribute__(a)\n\ #define __inline__ inline\n\ @@ -396,7 +398,7 @@ #define __extension__\n\ // #define __restrict\n\ #define __flexarr\n\ -#define __const const\n\ +//#define __const const\n\ #define __THORW\n\ // #define __attribute__(a)\n\ #define __inline__ inline\n\ @@ -1455,8 +1457,8 @@ MAX_INPUT_REGISTER_VAR*SIZE_OF_LONGLONG + MAX_INPUT_DREGISTER_VAR*SIZE_OF_DOUBLE; #ifndef __APPLE__ - printf(".set %s%d, %d\n",lpfx, arg_offset_label, - arg_offset_v+ arg_offset); + // printf(".set %s%d, %d\n",lpfx, arg_offset_label, + // arg_offset_v+ arg_offset); #endif } code_save_input_registers(dots, func_reg_arg_size ); diff -r 6ddb6444195b -r c533933fbacc mc-parse.c --- a/mc-parse.c Tue Nov 22 10:51:32 2011 +0900 +++ b/mc-parse.c Tue Nov 22 19:16:10 2011 +0900 @@ -600,6 +600,7 @@ reserve("char",CHAR,RESERVE); reserve("const",KONST,RESERVE); reserve("__const__",KONST,RESERVE); + reserve("__const",KONST,RESERVE); reserve("struct",STRUCT,RESERVE); reserve("union",UNION,RESERVE); reserve("unsigned",UNSIGNED,RESERVE);