diff options
| author | seyko <seyko2@gmail.com> | 2016-04-03 11:01:05 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2016-04-03 11:01:05 +0300 |
| commit | 2bf43b5483fb65b19b6277948d6438d7c4ccc3bc (patch) | |
| tree | eea9c2bcdc8c2a7bb50e65ac5f3b5ca972341c7f /tcc.h | |
| parent | 80343ab7d829c21c65f8f9a14dd20158d028549f (diff) | |
| download | tinycc-2bf43b5483fb65b19b6277948d6438d7c4ccc3bc.tar.gz tinycc-2bf43b5483fb65b19b6277948d6438d7c4ccc3bc.tar.bz2 | |
reverse of the "Identifiers can start and/or contain '.'"
- Identifiers can start and/or contain '.' in PARSE_FLAG_ASM_FILE
- Move all GAS directives under TOK_ASMDIR prefix
This patches breaks compilation of the tccboot (linux 2.4.26
kernel). A test.S which fails with this patches:
#define SRC(y...) \
9999: y; \
.section __ex_table, "a"; \
.long 9999b, 6001f<---->; \
.previous
SRC(1:<>movw (%esi), %bx<------>)
// 029-test.S:7: error: macro 'SRC' used with too many args
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -956,9 +956,7 @@ struct TCCState { #define DEF_ASM(x) DEF(TOK_ASM_ ## x, #x) #define TOK_ASM_int TOK_INT -#define DEF_ASMDIR(x) DEF(TOK_ASMDIR_ ## x, "." #x) -#define TOK_ASMDIR_FIRST TOK_ASMDIR_byte -#define TOK_ASMDIR_LAST TOK_ASMDIR_section +#define TOK_ASM_weak TOK_WEAK1 #if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64 /* only used for i386 asm opcodes definitions */ |
