this breaks getting the alignment of functions via bit masking which we assume to work in one test.
Unified · Split
| @@ -59,6 +59,13 @@ ifeq ($(OS),Windows_NT) # for libtcc_test to find libtcc.dll · 58 unmodified lines | ||
| 59 | 59 | PATH := $(CURDIR)/$(TOP)$(if $(findstring :\,$(PATH)),;,:)$(PATH) |
| 60 | 60 | endif |
| 61 | 61 | |
| 62 | +ifeq ($(ARCH),arm) | |
| 63 | +# tcctest refers to the alignment of functions, and with thumb mode | |
| 64 | +# the low bit of code addresses selects the mode, so the "alignment" | |
| 65 | +# of functions via bit masking comes out as 1. Just disable thumb. | |
| 66 | +test.ref: CFLAGS+=-marm | |
| 67 | +endif | |
| 68 | + | |
| 62 | 69 | RUN_TCC = $(NATIVE_DEFINES) -run $(TOPSRC)/tcc.c $(TCCFLAGS) |
| 63 | 70 | DISAS = objdump -d |
| 64 | 71 | DUMPTCC = (set -x; $(TOP)/tcc -vv; ldd $(TOP)/tcc; exit 1) |