Unified · Split
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | /* |
| 2 | 2 | * TCC - Tiny C Compiler |
| 3 | 3 | * |
| 4 | − * Copyright (c) 2001, 2002 Fabrice Bellard | |
| 4 | + * Copyright (c) 2001, 2002, 2003 Fabrice Bellard | |
| 5 | 5 | * |
| 6 | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | 7 | * it under the terms of the GNU General Public License as published by |
| @@ -737,6 +737,7 @@ typedef struct ASMOperand { · 729 unmodified lines | ||
| 737 | 737 | int ref_index; /* if >= 0, gives reference to a output constraint */ |
| 738 | 738 | int priority; /* priority, used to assign registers */ |
| 739 | 739 | int reg; /* if >= 0, register number used for this operand */ |
| 740 | + int is_llong; /* true if double register value */ | |
| 740 | 741 | } ASMOperand; |
| 741 | 742 | |
| 742 | 743 | static void asm_expr(TCCState *s1, ExprValue *pe); |
| @@ -7499,7 +7500,8 @@ static void block(int *bsym, int *csym, int *case_sym, int *def_sym, · 6756 unmodified lines | ||
| 7499 | 7500 | } |
| 7500 | 7501 | gsym(b); |
| 7501 | 7502 | skip(':'); |
| 7502 | − block(bsym, csym, case_sym, def_sym, case_reg, 0); | |
| 7503 | + is_expr = 0; | |
| 7504 | + goto block_after_label; | |
| 7503 | 7505 | } else |
| 7504 | 7506 | if (tok == TOK_DEFAULT) { |
| 7505 | 7507 | next(); |
| @@ -7509,7 +7511,8 @@ static void block(int *bsym, int *csym, int *case_sym, int *def_sym, · 3 unmodified lines | ||
| 7509 | 7511 | if (*def_sym) |
| 7510 | 7512 | error("too many 'default'"); |
| 7511 | 7513 | *def_sym = ind; |
| 7512 | − block(bsym, csym, case_sym, def_sym, case_reg, 0); | |
| 7514 | + is_expr = 0; | |
| 7515 | + goto block_after_label; | |
| 7513 | 7516 | } else |
| 7514 | 7517 | if (tok == TOK_GOTO) { |
| 7515 | 7518 | next(); |
| @@ -7556,6 +7559,7 @@ static void block(int *bsym, int *csym, int *case_sym, int *def_sym, · 40 unmodified lines | ||
| 7556 | 7559 | } |
| 7557 | 7560 | s->next = (void *)ind; |
| 7558 | 7561 | /* we accept this, but it is a mistake */ |
| 7562 | + block_after_label: | |
| 7559 | 7563 | if (tok == '}') { |
| 7560 | 7564 | warning("deprecated use of label at end of compound statement"); |
| 7561 | 7565 | } else { |