diff options
| author | James Lyon <jamesly0n@hotmail.com> | 2013-04-25 22:30:53 +0100 |
|---|---|---|
| committer | James Lyon <jamesly0n@hotmail.com> | 2013-04-25 22:30:53 +0100 |
| commit | 1caee8ab3b6c3cf3ceb06d1ec4a5e09e2d90c543 (patch) | |
| tree | 8030bbd2960b6951864d1bc21d634d6a95379196 /tests/Makefile | |
| parent | e7a7efed11792e0dbc14a66b02fa7b25886f69d8 (diff) | |
| download | tinycc-1caee8ab3b6c3cf3ceb06d1ec4a5e09e2d90c543.tar.gz tinycc-1caee8ab3b6c3cf3ceb06d1ec4a5e09e2d90c543.tar.bz2 | |
Sorted out CMake on x86-64 and fixed silly XMM# bug introduced when working on Win64 stdargs.
I removed the XMM6/7 registers from the register list because they are not used
on Win64 however they are necessary for parameter passing on x86-64. I have now
restored them but not marked them with RC_FLOAT so they will not be used except
for parameter passing.
Diffstat (limited to 'tests/Makefile')
| -rw-r--r-- | tests/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/Makefile b/tests/Makefile index 9c8a433..edb581c 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -43,9 +43,9 @@ ifeq ($(TARGETOS),Darwin) endif # run local version of tcc with local libraries and includes -TCCFLAGS = -B$(TOP) -I$(TOP) +TCCFLAGS = -B$(TOP) -I$(TOP) -I$(top_srcdir) -I$(top_srcdir)/include ifdef CONFIG_WIN32 - TCCFLAGS = -B$(top_srcdir)/win32 -I$(top_srcdir)/include -I$(TOP) -L$(TOP) + TCCFLAGS = -B$(top_srcdir)/win32 -I$(top_srcdir) -I$(top_srcdir)/include -I$(TOP) -L$(TOP) endif TCC = $(TOP)/tcc $(TCCFLAGS) @@ -82,8 +82,7 @@ moretests: # test.ref - generate using gcc # copy only tcclib.h so GCC's stddef and stdarg will be used test.ref: tcctest.c - cp $(top_srcdir)/include/tcclib.h . - gcc -o tcctest.gcc $< -I. $(CPPFLAGS) -w $(CFLAGS) $(NATIVE_DEFINES) -std=gnu99 -O0 -fno-omit-frame-pointer $(LDFLAGS) + gcc -o tcctest.gcc $< -I$(top_srcdir) $(CPPFLAGS) -w $(CFLAGS) $(NATIVE_DEFINES) -std=gnu99 -O0 -fno-omit-frame-pointer $(LDFLAGS) ./tcctest.gcc > $@ # auto test |
