Fix fct asm label: only valid for declaration

- Fix function assembly label mechanism introduced in commit
  9b09fc376e to only accept alternative
  name for function declaration.
- merge the code with the one introduced in commit
  264a103610.
- Don't memorize token for asm label but directly the asm label.
This commit is contained in:
Thomas Preud'homme
2011-02-07 22:42:38 +01:00
parent c23400278a
commit 32a682b88f
3 changed files with 26 additions and 58 deletions

2
tcc.h
View File

@ -219,7 +219,7 @@ typedef struct SValue {
/* symbol management */
typedef struct Sym {
int v; /* symbol token */
int a; /* asm symbol token */
char *asm_label; /* associated asm label */
long r; /* associated register */
union {
long c; /* associated number */