Mercurial > hg > CbC > old > device
changeset 858:c533933fbacc
modify __const__
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Nov 2011 19:16:10 +0900 |
parents | 6ddb6444195b |
children | cd0467ebee31 |
files | mc-code-i64.c mc-parse.c |
diffstat | 2 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 );
--- 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);