mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-02 08:20:06 +08:00
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.
This commit is contained in:
parent
83f822d0cd
commit
90e09ed75f
@ -59,6 +59,13 @@ ifeq ($(OS),Windows_NT) # for libtcc_test to find libtcc.dll
|
|||||||
PATH := $(CURDIR)/$(TOP)$(if $(findstring :\,$(PATH)),;,:)$(PATH)
|
PATH := $(CURDIR)/$(TOP)$(if $(findstring :\,$(PATH)),;,:)$(PATH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ARCH),arm)
|
||||||
|
# tcctest refers to the alignment of functions, and with thumb mode
|
||||||
|
# the low bit of code addresses selects the mode, so the "alignment"
|
||||||
|
# of functions via bit masking comes out as 1. Just disable thumb.
|
||||||
|
test.ref: CFLAGS+=-marm
|
||||||
|
endif
|
||||||
|
|
||||||
RUN_TCC = $(NATIVE_DEFINES) -run $(TOPSRC)/tcc.c $(TCCFLAGS)
|
RUN_TCC = $(NATIVE_DEFINES) -run $(TOPSRC)/tcc.c $(TCCFLAGS)
|
||||||
DISAS = objdump -d
|
DISAS = objdump -d
|
||||||
DUMPTCC = (set -x; $(TOP)/tcc -vv; ldd $(TOP)/tcc; exit 1)
|
DUMPTCC = (set -x; $(TOP)/tcc -vv; ldd $(TOP)/tcc; exit 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user