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