On 2020-07-05 21:22:27 -0400, John Scott wrote:
> tcc 0.9.27 works, but current mob fails during GMP's configure step. For GMP
> I
> use --disable-assembly and --disable-static, and it fails on
> checking how to define a 32-bit word... configure: error: cannot determine
> how
> to define a 32-bit word
The issue is that in the GMP test with the new tcc,
$gmp_cv_asm_label_suffix is empty instead of being ":", so that
the generated conftest.s is wrong and fails to assemble.
for gmp_tmp_op in .long .word data4; do
cat >conftest.s <<EOF
$gmp_cv_asm_data
$gmp_cv_asm_globl foo
$gmp_tmp_op 0
foo$gmp_cv_asm_label_suffix
$gmp_cv_asm_byte 0
EOF
With the old tcc:
configure:25708: checking for assembler label suffix
trying
configure:25721: tcc -c conftest.s >conftest.out 2>&1
configure:25724: $? = 1
conftest.s:2: error: unknown opcode 'somelabel'
configure: failed program was:
.text
somelabel
conftest.s:2: error: unknown opcode 'somelabel'
trying :
configure:25721: tcc -c conftest.s >conftest.out 2>&1
configure:25724: $? = 0
configure:25744: result: :
With the new one:
configure:25708: checking for assembler label suffix
trying
configure:25721: tcc -c conftest.s >conftest.out 2>&1
configure:25724: $? = 0
configure:25744: result:
So, the issue is that the program
.text
somelabel
should fail while it doesn't (indeed, it does with gcc and old tcc,
but doesn't with the mod branch).
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel