mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-22 07:40:10 +08:00
Disable floating-point test for ARM soft-float
From: Matteo Cypriani <mcy@lm7.fr> Date: Fri, 5 Sep 2014 23:22:56 -0400 Subject: Disable floating-point test for ARM soft-float tcc is not yet capable of doing softfloat floating-point operations on ARM, therefore we disable this test for these platforms. Note that tcc displays a warning to warn ARM users about this limitation (debian)
This commit is contained in:
parent
f1e4b2b7f3
commit
d972472c53
@ -45,6 +45,9 @@ ifeq ($(ARCH),i386)
|
|||||||
else ifneq ($(ARCH),x86-64)
|
else ifneq ($(ARCH),x86-64)
|
||||||
TESTS := $(filter-out vla_test-run,$(TESTS))
|
TESTS := $(filter-out vla_test-run,$(TESTS))
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(CONFIG_arm_eabi),yes)
|
||||||
|
TESTS := $(filter-out test3,$(TESTS))
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef DISABLE_STATIC
|
ifdef DISABLE_STATIC
|
||||||
export LD_LIBRARY_PATH:=$(CURDIR)/..
|
export LD_LIBRARY_PATH:=$(CURDIR)/..
|
||||||
@ -213,10 +216,16 @@ abitest-cc$(EXESUF): abitest.c $(top_builddir)/$(LIBTCC)
|
|||||||
abitest-tcc$(EXESUF): abitest.c libtcc.c
|
abitest-tcc$(EXESUF): abitest.c libtcc.c
|
||||||
$(TCC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(NATIVE_DEFINES) -DONE_SOURCE $(LIBS) $(LDFLAGS) -I$(top_srcdir)
|
$(TCC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(NATIVE_DEFINES) -DONE_SOURCE $(LIBS) $(LDFLAGS) -I$(top_srcdir)
|
||||||
|
|
||||||
abitest: abitest-cc$(EXESUF) abitest-tcc$(EXESUF)
|
ABITESTS := abitest-cc$(EXESUF)
|
||||||
|
ifneq ($(CONFIG_arm_eabi),yes) # not ARM soft-float
|
||||||
|
ABITESTS += abitest-tcc$(EXESUF)
|
||||||
|
endif
|
||||||
|
|
||||||
|
abitest: $(ABITESTS)
|
||||||
@echo ------------ $@ ------------
|
@echo ------------ $@ ------------
|
||||||
./abitest-cc$(EXESUF) lib_path=.. include="$(top_srcdir)/include"
|
./abitest-cc$(EXESUF) lib_path=.. include="$(top_srcdir)/include"
|
||||||
./abitest-tcc$(EXESUF) lib_path=.. include="$(top_srcdir)/include"
|
if [ $(CONFIG_arm_eabi) != "yes" ]; then \
|
||||||
|
./abitest-tcc$(EXESUF) lib_path=.. include="$(top_srcdir)/include"; fi
|
||||||
|
|
||||||
vla_test$(EXESUF): vla_test.c
|
vla_test$(EXESUF): vla_test.c
|
||||||
$(TCC) -o $@ $^ $(CPPFLAGS) $(CFLAGS)
|
$(TCC) -o $@ $^ $(CPPFLAGS) $(CFLAGS)
|
||||||
|
@ -100,6 +100,9 @@ TESTS = \
|
|||||||
SKIP = 34_array_assignment.test
|
SKIP = 34_array_assignment.test
|
||||||
|
|
||||||
# some tests do not pass on all platforms, remove them for now
|
# some tests do not pass on all platforms, remove them for now
|
||||||
|
ifeq ($(CONFIG_arm_eabi),yes) # not ARM soft-float
|
||||||
|
SKIP += 22_floating_point.test
|
||||||
|
endif
|
||||||
ifeq ($(TARGETOS),Darwin)
|
ifeq ($(TARGETOS),Darwin)
|
||||||
SKIP += 40_stdio.test
|
SKIP += 40_stdio.test
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user