aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-10-01 17:10:18 +0200
committerThomas Preud'homme <robotux@celest.fr>2013-10-01 17:11:44 +0200
commit385a86b000ca8c363959a1ae7b6a5518446ce497 (patch)
treec177eaa050007b2bff209f9dca8fdc6123b4853c
parent0f5942c6b382105075dabb6f975a313efc63a5f9 (diff)
downloadtinycc-385a86b000ca8c363959a1ae7b6a5518446ce497.tar.gz
tinycc-385a86b000ca8c363959a1ae7b6a5518446ce497.tar.bz2
Fix commit 0f5942c6b382105075dabb6f975a313efc63a5f9
-rw-r--r--x86_64-gen.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/x86_64-gen.c b/x86_64-gen.c
index 3cb211a..690236e 100644
--- a/x86_64-gen.c
+++ b/x86_64-gen.c
@@ -1029,9 +1029,7 @@ static X86_64_Mode classify_x86_64_arg(CType *ty, CType *ret, int *psize, int *p
ret_t = (size > 4) ? VT_DOUBLE : VT_FLOAT;
}
break;
- case x86_64_mode_memory: /* avoid warning */
- case x86_64_mode_none:
- tcc_error("argument type not handled in classify_x86_64_arg\n");
+ default: break; /* nothing to be done for x86_64_mode_memory and x86_64_mode_none*/
}
}
}
@@ -1135,8 +1133,7 @@ void gfunc_call(int nb_args)
gen_reg -= reg_count;
if (gen_reg + reg_count > REGN) goto stack_arg;
break;
- case x86_64_mode_none: /* avoid warning */
- tcc_error("argument type not handled in gfunc_call");
+ default: break; /* nothing to be done for x86_64_mode_none */
}
}
@@ -1503,8 +1500,7 @@ void gfunc_prolog(CType *func_type)
}
break;
}
- case x86_64_mode_none:
- tcc_error("argument type not handled in gfunc_prolog\n");
+ default: break; /* nothing to be done for x86_64_mode_none */
}
sym_push(sym->v & ~SYM_FIELD, type,
VT_LOCAL | VT_LVAL, param_addr);