libtest fails on mingw since d04ce77 (2019-05-30)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

libtest fails on mingw since d04ce77 (2019-05-30)

avih
I noticed that libtest fails with mingw since commit:
d04ce77 Don't allow section switches in local asm instructions - Michael Matz

with the following error:

------------ libtest ------------
./libtcc_test.exe -B../../win32 -I../../include -I../.. -I.. -L..
Hello World!
fib(32) = 2178309
add(32, 64) = 96
gcc.exe -o tcctest.gcc ../../tests/tcctest.c -DTCC_TARGET_X86_64 -DTCC_TARGET_PE -fno-strict-aliasing -I.. -I../..  -w -O0 -std=gnu99 -fno-omit-frame-pointer
/tmp/ccUS0anU.s: Assembler messages:
/tmp/ccUS0anU.s:10423: Error: unknown pseudo-op: `.pushsection'
/tmp/ccUS0anU.s:10423: Error: unknown pseudo-op: `.popsection'
/tmp/ccUS0anU.s:10432: Error: unknown pseudo-op: `.previous'
make[2]: *** [Makefile:87: test.ref] Error 1

Tested with mingw 32 and 64 in msys2 (gcc 9.1.0), and in mingw gcc 64 which I built using MXE (gcc 5.5.0) in cygwin.

All tests pass with the previous commit (1dd6842).

_______________________________________________
Tinycc-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel