- add missing cases
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 14 Sep 2008 00:58:04 +0000 (00:58 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 14 Sep 2008 00:58:04 +0000 (00:58 +0000)
[r21933]

ast2firm.c
parser.c

index f3f8f20..afa595f 100644 (file)
@@ -5078,6 +5078,7 @@ static int count_decls_in_expression(const expression_t *expression) {
        case EXPR_BUILTIN_SYMBOL:
        case EXPR_VA_START:
        case EXPR_VA_ARG:
+       case EXPR_LABEL_ADDRESS:
                break;
        }
 
index f3674c1..240c92a 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -8022,6 +8022,7 @@ static bool expression_has_effect(const expression_t *const expr)
                case EXPR_WIDE_CHARACTER_CONSTANT:   return false;
                case EXPR_STRING_LITERAL:            return false;
                case EXPR_WIDE_STRING_LITERAL:       return false;
+               case EXPR_LABEL_ADDRESS:             return false;
 
                case EXPR_CALL: {
                        const call_expression_t *const call = &expr->call;