History

Disable thumb code generation on tcctest.gcc

this breaks getting the alignment of functions via bit masking which we assume to work in one test.

Michael Matz committed 6 years ago

Commit 90e09ed1 parent 83f822d1 file · +7 −0Browse files

Unified · Split

tests/Makefile+7−0
@@ -59,6 +59,13 @@ ifeq ($(OS),Windows_NT) # for libtcc_test to find libtcc.dll · 58 unmodified lines
5959 PATH := $(CURDIR)/$(TOP)$(if $(findstring :\,$(PATH)),;,:)$(PATH)
6060 endif
6161
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+
6269 RUN_TCC = $(NATIVE_DEFINES) -run $(TOPSRC)/tcc.c $(TCCFLAGS)
6370 DISAS = objdump -d
6471 DUMPTCC = (set -x; $(TOP)/tcc -vv; ldd $(TOP)/tcc; exit 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t