Update to 0.9.20; changes in this version:
o added '-w' option o added '.gnu.linkonce' ELF sections support o fixed libc linking when running in memory (avoid 'stat' function errors). o extended '-run' option to be able to give several arguments to a C script.
This commit is contained in:
parent
ae42f12e88
commit
2da5b3ac7d
4 changed files with 90 additions and 28 deletions
|
@ -1,7 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.3 2004/01/25 02:33:44 grantbeattie Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2004/03/17 22:56:05 xtraeme Exp $
|
||||
#
|
||||
|
||||
DISTNAME= tcc-0.9.19
|
||||
DISTNAME= tcc-0.9.20
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= http://fabrice.bellard.free.fr/tcc/
|
||||
|
||||
|
@ -11,7 +11,7 @@ COMMENT= The Smallest ANSI C compiler
|
|||
|
||||
USE_GNU_TOOLS+= make
|
||||
GNU_CONFIGURE= yes
|
||||
USE_BUILDLINK2= yes
|
||||
USE_BUILDLINK3= yes
|
||||
|
||||
ONLY_FOR_PLATFORM= *-*-i386
|
||||
|
||||
|
|
18
tcc/PLIST
18
tcc/PLIST
|
@ -1,15 +1,15 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/27 02:41:03 poppnk Exp $
|
||||
@comment $NetBSD: PLIST,v 1.2 2004/03/17 22:56:05 xtraeme Exp $
|
||||
bin/tcc
|
||||
include/libtcc.h
|
||||
include/tcc/libtcc.h
|
||||
include/tcc/float.h
|
||||
include/tcc/stdarg.h
|
||||
include/tcc/stdbool.h
|
||||
include/tcc/stddef.h
|
||||
include/tcc/tcclib.h
|
||||
include/tcc/varargs.h
|
||||
lib/libtcc.a
|
||||
lib/tcc/bcheck.o
|
||||
lib/tcc/include/float.h
|
||||
lib/tcc/include/stdarg.h
|
||||
lib/tcc/include/stdbool.h
|
||||
lib/tcc/include/stddef.h
|
||||
lib/tcc/include/tcclib.h
|
||||
lib/tcc/include/varargs.h
|
||||
lib/tcc/libtcc1.a
|
||||
man/man1/tcc.1
|
||||
@dirrm lib/tcc/include
|
||||
@dirrm lib/tcc
|
||||
@dirrm include/tcc
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
$NetBSD: distinfo,v 1.2 2003/07/27 17:22:20 xtraeme Exp $
|
||||
$NetBSD: distinfo,v 1.3 2004/03/17 22:56:05 xtraeme Exp $
|
||||
|
||||
SHA1 (tcc-0.9.19.tar.gz) = b0eeff0059253bb5f447c7c146978d9cdff368dd
|
||||
Size (tcc-0.9.19.tar.gz) = 197848 bytes
|
||||
SHA1 (tcc-0.9.20.tar.gz) = 6db41cbfc90415b94f2e53c1a1e5db0ef8105eb8
|
||||
Size (tcc-0.9.20.tar.gz) = 199391 bytes
|
||||
SHA1 (patch-aa) = 0330e802be1cd16b8ec173284fb4e02c7f7b55fb
|
||||
SHA1 (patch-ab) = eef3c23a19f195f8bfea1f6b4b1c9f2a789fa2a5
|
||||
SHA1 (patch-ac) = fd553aee2bdd172903bf35da5a387765d637326e
|
||||
SHA1 (patch-ac) = d236edbea6807f51e33a10f1df3e89ce766d7a10
|
||||
SHA1 (patch-ad) = 8c6c97bacffe9374a9e33d3566f8f37430120af0
|
||||
|
|
|
@ -1,26 +1,88 @@
|
|||
$NetBSD: patch-ac,v 1.1.1.1 2003/07/27 02:41:04 poppnk Exp $
|
||||
|
||||
--- Makefile.orig 2003-05-24 18:30:29.000000000 +0000
|
||||
+++ Makefile 2003-07-27 04:32:14.000000000 +0000
|
||||
@@ -2,9 +2,11 @@
|
||||
# Tiny C Compiler Makefile
|
||||
--- Makefile.orig 2004-03-17 23:55:38.000000000 +0100
|
||||
+++ Makefile 2004-03-17 23:59:32.000000000 +0100
|
||||
@@ -3,20 +3,17 @@
|
||||
#
|
||||
include config.mak
|
||||
+OS=\`uname\`
|
||||
|
||||
CFLAGS=-O2 -g -Wall
|
||||
-CFLAGS=-O2 -g -Wall
|
||||
-LIBS=-ldl
|
||||
+LIBS=`if [ ! "$(OS)" = "NetBSD" ]; then echo "-ldl"; fi`
|
||||
+
|
||||
CFLAGS_P=$(CFLAGS) -pg -static -DCONFIG_TCC_STATIC
|
||||
LIBS_P=
|
||||
|
||||
@@ -167,7 +169,7 @@
|
||||
CFLAGS+=-mpreferred-stack-boundary=2
|
||||
ifeq ($(GCC_MAJOR),2)
|
||||
-CFLAGS+=-m386 -malign-functions=0
|
||||
+CFLAGS+=-malign-functions=0
|
||||
else
|
||||
-CFLAGS+=-march=i386 -falign-functions=0
|
||||
+CFLAGS+=-falign-functions=0
|
||||
endif
|
||||
|
||||
DISAS=objdump -d
|
||||
-INSTALL=install
|
||||
|
||||
# run local version of tcc with local libraries and includes
|
||||
TCC=./tcc -B. -I.
|
||||
@@ -116,24 +113,24 @@
|
||||
|
||||
# TinyCC runtime libraries
|
||||
libtcc1.o: libtcc1.c
|
||||
- $(CC) -O2 -Wall -c -o $@ $<
|
||||
+ $(CC) -c -o $@ $<
|
||||
|
||||
libtcc1.a: libtcc1.o
|
||||
$(AR) rcs $@ $^
|
||||
|
||||
bcheck.o: bcheck.c
|
||||
- $(CC) -O2 -Wall -c -o $@ $<
|
||||
+ $(CC) -c -o $@ $<
|
||||
|
||||
install: tcc_install libinstall
|
||||
|
||||
tcc_install: tcc tcc.1 libtcc1.a bcheck.o
|
||||
- $(INSTALL) -m755 tcc $(bindir)
|
||||
- $(INSTALL) tcc.1 $(mandir)/man1
|
||||
- mkdir -p $(libdir)/tcc
|
||||
- mkdir -p $(libdir)/tcc/include
|
||||
- $(INSTALL) -m644 libtcc1.a bcheck.o $(libdir)/tcc
|
||||
- $(INSTALL) -m644 stdarg.h stddef.h stdbool.h float.h varargs.h \
|
||||
- tcclib.h $(libdir)/tcc/include
|
||||
+ $(BSD_INSTALL_PROGRAM) tcc $(bindir)
|
||||
+ $(BSD_INSTALL_MAN) tcc.1 $(mandir)/man1
|
||||
+ $(BSD_INSTALL_DATA_DIR) $(libdir)/tcc
|
||||
+ $(BSD_INSTALL_DATA_DIR) $(prefix)/include/tcc
|
||||
+ $(BSD_INSTALL_DATA) libtcc1.a bcheck.o $(libdir)/tcc
|
||||
+ $(BSD_INSTALL_DATA) stdarg.h stddef.h stdbool.h float.h varargs.h \
|
||||
+ tcclib.h $(prefix)/include/tcc
|
||||
|
||||
clean:
|
||||
rm -f *~ *.o tcc tcc1 tcct tcc_g tcctest.ref *.bin *.i ex2 \
|
||||
@@ -157,8 +154,8 @@
|
||||
|
||||
# libtcc generation and example
|
||||
libinstall: libtcc.a
|
||||
- $(INSTALL) -m644 libtcc.a $(libdir)
|
||||
- $(INSTALL) -m644 libtcc.h $(includedir)
|
||||
+ $(BSD_INSTALL_DATA) libtcc.a $(libdir)
|
||||
+ $(BSD_INSTALL_DATA) libtcc.h $(includedir)/tcc
|
||||
|
||||
libtcc.o: tcc.c i386-gen.c bcheck.c Makefile
|
||||
$(CC) $(CFLAGS) -DLIBTCC -c -o $@ $<
|
||||
@@ -167,7 +164,7 @@
|
||||
$(AR) rcs $@ $^
|
||||
|
||||
libtcc_test: libtcc_test.c libtcc.a
|
||||
- $(CC) $(CFLAGS) -I. -o $@ $< -L. -ltcc -ldl
|
||||
+ $(CC) $(CFLAGS) -I. -o $@ $< -L. -ltcc $(LIBS)
|
||||
+ $(CC) $(CFLAGS) -I. -o $@ $< -L. -ltcc
|
||||
|
||||
libtest: libtcc_test
|
||||
./libtcc_test
|
||||
@@ -198,7 +195,7 @@
|
||||
@if diff -u --ignore-matching-lines="file format" asmtest.ref asmtest.out ; then echo "ASM Auto Test OK"; fi
|
||||
|
||||
instr.o: instr.S
|
||||
- $(CC) -O2 -Wall -g -c -o $@ $<
|
||||
+ $(CC) -c -o $@ $<
|
||||
|
||||
cache: tcc_g
|
||||
cachegrind ./tcc_g -o /tmp/linpack -lm bench/linpack.c
|
||||
|
|
Loading…
Reference in a new issue