aboutsummaryrefslogtreecommitdiff
path: root/arm-asm.c
diff options
context:
space:
mode:
authorgrischka <grischka>2017-02-25 12:49:47 +0100
committergrischka <grischka>2017-02-25 12:51:04 +0100
commitbb93064d7857d887b674999c9b4152b44a628f9a (patch)
tree5290a93161373fd5a286d9aaf32ebb8dea04f82c /arm-asm.c
parent669f61117d6ff2255649e80a9708fe24e32d4a33 (diff)
downloadtinycc-bb93064d7857d887b674999c9b4152b44a628f9a.tar.gz
tinycc-bb93064d7857d887b674999c9b4152b44a628f9a.tar.bz2
makefile: unify cross with native builds
supports building cross compilers on the fly without need for configure --enable-cross $ make cross # all compilers $ make cross-TARGET # only TARGET-compiler & its libtcc1.a with TARGET one from i386 x86_64 i386-win32 x86_64-win32 arm arm64 arm-wince c67 Type 'make help' for more information
Diffstat (limited to 'arm-asm.c')
-rw-r--r--arm-asm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arm-asm.c b/arm-asm.c
index 5840cde..c236b54 100644
--- a/arm-asm.c
+++ b/arm-asm.c
@@ -17,6 +17,11 @@ ST_FUNC void gen_le32(int c);
#else
/*************************************************************/
+static void asm_error(void)
+{
+ tcc_error("ARM asm not implemented.");
+}
+
/* XXX: make it faster ? */
ST_FUNC void g(int c)
{
@@ -49,10 +54,12 @@ ST_FUNC void gen_expr32(ExprValue *pe)
ST_FUNC void asm_opcode(TCCState *s1, int opcode)
{
+ asm_error();
}
ST_FUNC void subst_asm_operand(CString *add_str, SValue *sv, int modifier)
{
+ asm_error();
}
/* generate prolog and epilog code for asm statement */
@@ -61,6 +68,7 @@ ST_FUNC void asm_gen_code(ASMOperand *operands, int nb_operands,
uint8_t *clobber_regs,
int out_reg)
{
+ asm_error();
}
ST_FUNC void asm_compute_constraints(ASMOperand *operands,
@@ -68,14 +76,17 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands,
const uint8_t *clobber_regs,
int *pout_reg)
{
+ asm_error();
}
ST_FUNC void asm_clobber(uint8_t *clobber_regs, const char *str)
{
+ asm_error();
}
ST_FUNC int asm_parse_regvar (int t)
{
+ asm_error();
return -1;
}