Unified · Split
| @@ -7801,21 +7801,11 @@ static void unary(void) · 7800 unmodified lines | ||
| 7801 | 7801 | break; |
| 7802 | 7802 | #ifdef TCC_TARGET_X86_64 |
| 7803 | 7803 | case TOK_builtin_malloc: |
| 7804 | − { | |
| 7805 | − char *p = file->buf_ptr; | |
| 7806 | − file->buf_ptr = "malloc"; | |
| 7807 | − next_nomacro1(); | |
| 7808 | − file->buf_ptr = p; | |
| 7809 | − goto tok_identifier; | |
| 7810 | − } | |
| 7804 | + tok = TOK_malloc; | |
| 7805 | + goto tok_identifier; | |
| 7811 | 7806 | case TOK_builtin_free: |
| 7812 | − { | |
| 7813 | − char *p = file->buf_ptr; | |
| 7814 | − file->buf_ptr = "free"; | |
| 7815 | − next_nomacro1(); | |
| 7816 | − file->buf_ptr = p; | |
| 7817 | − goto tok_identifier; | |
| 7818 | − } | |
| 7807 | + tok = TOK_free; | |
| 7808 | + goto tok_identifier; | |
| 7819 | 7809 | #endif |
| 7820 | 7810 | case TOK_INC: |
| 7821 | 7811 | case TOK_DEC: |
| @@ -113,6 +113,8 @@ · 112 unmodified lines | ||
| 113 | 113 | #ifdef TCC_TARGET_X86_64 |
| 114 | 114 | DEF(TOK_builtin_malloc, "__builtin_malloc") |
| 115 | 115 | DEF(TOK_builtin_free, "__builtin_free") |
| 116 | + DEF(TOK_malloc, "malloc") | |
| 117 | + DEF(TOK_free, "free") | |
| 116 | 118 | #endif |
| 117 | 119 | DEF(TOK_REGPARM1, "regparm") |
| 118 | 120 | DEF(TOK_REGPARM2, "__regparm__") |
| @@ -216,11 +218,13 @@ · 97 unmodified lines | ||
| 216 | 218 | DEF(TOK___bound_ptr_indir16, "__bound_ptr_indir16") |
| 217 | 219 | DEF(TOK___bound_local_new, "__bound_local_new") |
| 218 | 220 | DEF(TOK___bound_local_delete, "__bound_local_delete") |
| 221 | +#if 0 | |
| 219 | 222 | DEF(TOK_malloc, "malloc") |
| 220 | 223 | DEF(TOK_free, "free") |
| 221 | 224 | DEF(TOK_realloc, "realloc") |
| 222 | 225 | DEF(TOK_memalign, "memalign") |
| 223 | 226 | DEF(TOK_calloc, "calloc") |
| 227 | +#endif | |
| 224 | 228 | DEF(TOK_memmove, "memmove") |
| 225 | 229 | DEF(TOK_strlen, "strlen") |
| 226 | 230 | DEF(TOK_strcpy, "strcpy") |