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
59 PATH := $(CURDIR)/$(TOP)$(if $(findstring :\,$(PATH)),;,:)$(PATH)59 PATH := $(CURDIR)/$(TOP)$(if $(findstring :\,$(PATH)),;,:)$(PATH)
60endif60endif
61 61
62ifeq ($(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.
66test.ref: CFLAGS+=-marm
67endif
68
62RUN_TCC = $(NATIVE_DEFINES) -run $(TOPSRC)/tcc.c $(TCCFLAGS)69RUN_TCC = $(NATIVE_DEFINES) -run $(TOPSRC)/tcc.c $(TCCFLAGS)
63DISAS = objdump -d70DISAS = objdump -d
64DUMPTCC = (set -x; $(TOP)/tcc -vv; ldd $(TOP)/tcc; exit 1)71DUMPTCC = (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