[Tinycc-devel] arm-asm breaks aarch64 (as with Fedora 33 on RPi)

2021-01-02 Thread Christian Jullien
Hi, Danny huge commit for arm code breaks aarch64 (as with Fedora 33 on RPi): On this 64bit system, it tries to compile arm-asm: ... gcc -o arm64-link.o -c arm64-link.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -D TCC_TARGET_ARM64

[Tinycc-devel] [PATCH] arm-asm: Support bigger immediates for data processing instructions

2021-01-02 Thread Danny Milosavljevic
--- arm-asm.c | 57 ++- 1 file changed, 40 insertions(+), 17 deletions(-) diff --git a/arm-asm.c b/arm-asm.c index 53fdc23..99f2f3a 100644 --- a/arm-asm.c +++ b/arm-asm.c @@ -550,6 +550,8 @@ static void asm_data_processing_opcode(TCCState *s1, i

[Tinycc-devel] [PATCH] arm-asm: Add movw

2021-01-02 Thread Danny Milosavljevic
--- arm-asm.c | 11 ++- arm-tok.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arm-asm.c b/arm-asm.c index cec1700..53fdc23 100644 --- a/arm-asm.c +++ b/arm-asm.c @@ -228,10 +228,18 @@ static void asm_binary_opcode(TCCState *s1, int token) if (ops[1].type !=

[Tinycc-devel] [PATCH v2] arm-asm: Add movt

2021-01-02 Thread Danny Milosavljevic
--- arm-asm.c | 16 +++- arm-tok.h | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/arm-asm.c b/arm-asm.c index 6eb680a..cec1700 100644 --- a/arm-asm.c +++ b/arm-asm.c @@ -226,7 +226,20 @@ static void asm_binary_opcode(TCCState *s1, int token) tcc_warning

[Tinycc-devel] [PATCH 2/3] arm-asm: Implement asm_compute_constraints

2021-01-02 Thread Danny Milosavljevic
--- arm-asm.c | 286 ++ 1 file changed, 286 insertions(+) diff --git a/arm-asm.c b/arm-asm.c index d0c3de1..881a6b9 100644 --- a/arm-asm.c +++ b/arm-asm.c @@ -1297,11 +1297,297 @@ ST_FUNC void asm_gen_code(ASMOperand *operands, int nb_operands,

[Tinycc-devel] [PATCH 0/3] Add integration of C operands to ARM inline assembler

2021-01-02 Thread Danny Milosavljevic
This patchset adds support for C operands as input/output of ARM inline assembly blocks. Danny Milosavljevic (3): arm-asm: Implement asm_gen_code arm-asm: Implement asm_compute_constraints arm-asm: Implement subst_asm_operand arm-asm.c | 442

[Tinycc-devel] [PATCH 1/3] arm-asm: Implement asm_gen_code

2021-01-02 Thread Danny Milosavljevic
--- arm-asm.c | 83 +-- 1 file changed, 80 insertions(+), 3 deletions(-) diff --git a/arm-asm.c b/arm-asm.c index 1aeb28c..d0c3de1 100644 --- a/arm-asm.c +++ b/arm-asm.c @@ -1214,10 +1214,87 @@ ST_FUNC void subst_asm_operand(CString *add_str, SV

[Tinycc-devel] [PATCH 3/3] arm-asm: Implement subst_asm_operand

2021-01-02 Thread Danny Milosavljevic
--- arm-asm.c | 73 ++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/arm-asm.c b/arm-asm.c index 881a6b9..3ade475 100644 --- a/arm-asm.c +++ b/arm-asm.c @@ -1209,7 +1209,78 @@ ST_FUNC void asm_opcode(TCCState *s1, int token) S

Re: [Tinycc-devel] issues/questions with stddef.h which comes with tcc

2021-01-02 Thread grischka
Christian Jullien wrote: Do you allow me to remove [u]intN_t definitions for stddef.h and see how it goes? In tinycc to remove things that are unnecessary or ugly is always allowed. Not allowed is to add things that are unnecessary or ugly. Also, tip of the year: While still working in progre