debian/0000755000000000000000000000000012002555704007166 5ustar debian/libtcc-dev.install0000644000000000000000000000003711776556373012616 0ustar usr/lib/*/libtcc.a usr/include debian/tcc.manpages0000644000000000000000000000000611776556373011474 0ustar tcc.1 debian/tcc.install0000644000000000000000000000002411776556373011347 0ustar usr/bin usr/lib/tcc debian/tcc.lintian-overrides0000644000000000000000000000057011776556373013345 0ustar # Upstream Makefile explicitly disable fortification of functions tcc binary: hardening-no-fortify-functions usr/bin/tcc # These files are examples and need thus to be modified tcc binary: example-interpreter-in-usr-local usr/share/doc/tcc/examples/ex1.c #!/usr/local/bin/tcc tcc binary: example-interpreter-in-usr-local usr/share/doc/tcc/examples/ex4.c #!/usr/local/bin/tcc debian/patches/0000755000000000000000000000000012002554541010613 5ustar debian/patches/0002-Evaluate-configure-arguments.patch0000644000000000000000000000147311776556373017776 0ustar From 3f094b4d2650e6cd576869bf8a5b285fc72787bf Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 12 Jun 2012 20:48:01 +0200 Subject: Evaluate configure arguments Evaluate configure arguments to reproduce autotools behavior. Autotools actually only expands a few variable and do it at make time but it makes the change much simpler. Origin: vendor Forwarded: yes Last-Update: 2012-06-12 Applied-Upstream: commit: 2e7a1af5d5d659c94b53ba2d06b84875942eb6fe --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index f152cf9..1efe9cc 100755 --- a/configure +++ b/configure @@ -103,6 +103,7 @@ if test -z "$source_path" -o "$source_path" = "." ; then fi for opt do + eval opt=$opt case "$opt" in --prefix=*) prefix=`echo $opt | cut -d '=' -f 2` ;; debian/patches/0001-Fix-R_ARM_REL32-relocation.patch0000644000000000000000000000145511776556373016675 0ustar From d95a4bab810540a72e22a8585fbc13d6ea5189dd Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 12 Jun 2012 17:57:31 +0200 Subject: Fix R_ARM_REL32 relocation Add missing break in the code handling R_ARM_REL32 relocation. Origin: vendor Forwarded: http://lists.nongnu.org/archive/html/tinycc-devel/2012-06/msg00031.html Last-Update: 2012-06-12 --- tccelf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tccelf.c b/tccelf.c index 655860b..a16499b 100644 --- a/tccelf.c +++ b/tccelf.c @@ -636,6 +636,7 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s) break; case R_ARM_REL32: *(int *)ptr += val - addr; + break; case R_ARM_BASE_PREL: *(int *)ptr += s1->got->sh_addr - addr; break; debian/patches/0005-Incorrect-shift-result-type-with-64-bit-ABI.patch0000644000000000000000000000346311776556373022155 0ustar From 16ab20b1893c2f5b5462f8568444609c3b49f882 Mon Sep 17 00:00:00 2001 From: Vincent Lefevre Date: Wed, 27 Jun 2012 13:31:44 +0200 Subject: Incorrect shift result type with 64-bit ABI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 2012-06-26 15:07:57 +0200, Vincent Lefevre wrote: > ISO C99 TC3 says: [6.5.7#3] "The integer promotions are performed on > each of the operands. The type of the result is that of the promoted > left operand." I've written a patch (attached). Now the shift problems no longer occur with the testcase and with GNU MPFR's "make check". -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) Origin: upstream, http://repo.or.cz/w/tinycc.git/commit/d27a0b35482b907357d76a9db4e0b18ec89cf979 Bug-Debian: http://bugs.debian.org/679123 Forwarded: http://lists.nongnu.org/archive/html/tinycc-devel/2012-07/msg00011.html Last-Update: 2012-07-06 Applied-Upstream: commit: d27a0b35482b907357d76a9db4e0b18ec89cf979 --- tccgen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tccgen.c b/tccgen.c index 7295267..d27bdba 100644 --- a/tccgen.c +++ b/tccgen.c @@ -1678,6 +1678,11 @@ ST_FUNC void gen_op(int op) (op < TOK_ULT || op > TOK_GT)) tcc_error("invalid operands for binary operation"); goto std_op; + } else if (op == TOK_SHR || op == TOK_SAR || op == TOK_SHL) { + t = bt1 == VT_LLONG ? VT_LLONG : VT_INT; + if ((t1 & (VT_BTYPE | VT_UNSIGNED)) == (t | VT_UNSIGNED)) + t |= VT_UNSIGNED; + goto std_op; } else if (bt1 == VT_LLONG || bt2 == VT_LLONG) { /* cast to biggest op */ t = VT_LLONG; debian/patches/series0000644000000000000000000000043112002554541012026 0ustar 0001-Fix-R_ARM_REL32-relocation.patch 0002-Evaluate-configure-arguments.patch 0003-Detect-multiarch-on-Kfreebsd-and-Hurd.patch 0004-Disable-callsave_test-test-on-arm.patch 0005-Incorrect-shift-result-type-with-64-bit-ABI.patch 0006-get_reg-try-to-free-r2-for-an-SValue-first.patch debian/patches/0004-Disable-callsave_test-test-on-arm.patch0000644000000000000000000000170411776556373020603 0ustar From e35db37221daf0ba52087bda4c1975c220942a4e Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Wed, 13 Jun 2012 19:34:57 +0200 Subject: Disable callsave_test test on arm callsave_test uses alloca to perform its test but alloca is not available on arm. Hence this test must be disabled. Origin: vendor Forwarded: not-needed Last-Update: 2012-06-13 --- tests/tcctest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/tcctest.c b/tests/tcctest.c index 1b04c1f..4ab4cc7 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -2665,6 +2665,8 @@ double get100 () { return 100.0; } void callsave_test(void) { +/* alloca is not defined on arm */ +#if defined __i386__ || defined __x86_64__ int i, s; double *d; double t; s = sizeof (double); printf ("callsavetest: %d\n", s); @@ -2677,4 +2679,5 @@ void callsave_test(void) generates a segfault. */ i = d[0] > get100 (); printf ("%d\n", i); +#endif } debian/patches/0003-Detect-multiarch-on-Kfreebsd-and-Hurd.patch0000644000000000000000000000253011776556373021235 0ustar From 073c697537a78da2b8cdbb4a0ff84dcce250ba24 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Wed, 13 Jun 2012 18:28:24 +0200 Subject: Detect multiarch on Kfreebsd and Hurd Origin: upstream, commit: b0ebcfa7bae4a8743698107a82fffc598818ccc5 Forwarded: http://repo.or.cz/w/tinycc.git/commit/b0ebcfa7bae4a8743698107a82fffc598818ccc5 Last-Updated: 2012-06-13 Applied-Upstream: commit: b0ebcfa7bae4a8743698107a82fffc598818ccc5 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 3b6acdd..ba94577 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,8 @@ endif ifeq ($(ARCH),i386) NATIVE_DEFINES=-DTCC_TARGET_I386 NATIVE_DEFINES+=$(if $(wildcard /lib/i386-linux-gnu),-DCONFIG_MULTIARCHDIR=\"i386-linux-gnu\") +NATIVE_DEFINES+=$(if $(wildcard /lib/i386-kfreebsd-gnu),-DCONFIG_MULTIARCHDIR=\"i386-kfreebsd-gnu\") +NATIVE_DEFINES+=$(if $(wildcard /lib/i386-gnu),-DCONFIG_MULTIARCHDIR=\"i386-gnu\") CFLAGS+=-m32 else ifeq ($(ARCH),x86-64) @@ -47,6 +49,7 @@ NATIVE_DEFINES=-DTCC_TARGET_X86_64 CFLAGS+=-m64 NATIVE_DEFINES+=$(if $(wildcard /usr/lib64),-DCONFIG_LDDIR=\"lib64\") NATIVE_DEFINES+=$(if $(wildcard /lib/x86_64-linux-gnu),-DCONFIG_MULTIARCHDIR=\"x86_64-linux-gnu\") +NATIVE_DEFINES+=$(if $(wildcard /lib/x86_64-kfreebsd-gnu),-DCONFIG_MULTIARCHDIR=\"x86_64-kfreebsd-gnu\") endif endif debian/patches/0006-get_reg-try-to-free-r2-for-an-SValue-first.patch0000644000000000000000000000415212002554541022033 0ustar From 315185fe1db1296e511bec15894dad22432c9a7f Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sat, 21 Jul 2012 03:36:51 +0200 Subject: get_reg(): try to free r2 for an SValue first To be able to load a long long value correctly on i386, gv() rely on the fact that when get_reg() look at an SValue it tries first to free the register in r2 and then r. More information about the context can be found at http://lists.nongnu.org/archive/html/tinycc-devel/2012-06/msg00017.html and later at http://lists.nongnu.org/archive/html/tinycc-devel/2012-07/msg00021.html Origin: upstream,http://repo.or.cz/w/tinycc.git/commit/d1694f7d7e6d96f64d1330c9b43491b613272b1e Bug-Debian: http://bugs.debian.org/681281 Forwarded: http://lists.nongnu.org/archive/html/tinycc-devel/2012-06/msg00017.html Last-Updated: 2012-07-21 Applied-Upstream: commit:d1694f7d7e6d96f64d1330c9b43491b613272b1e --- tccgen.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tccgen.c b/tccgen.c index d27bdba..71d0809 100644 --- a/tccgen.c +++ b/tccgen.c @@ -589,11 +589,11 @@ ST_FUNC int get_reg(int rc) IMPORTANT to start from the bottom to ensure that we don't spill registers used in gen_opi()) */ for(p=vstack;p<=vtop;p++) { - r = p->r & VT_VALMASK; + /* look at second register (if long long) */ + r = p->r2 & VT_VALMASK; if (r < VT_CONST && (reg_classes[r] & rc)) goto save_found; - /* also look at second register (if long long) */ - r = p->r2 & VT_VALMASK; + r = p->r & VT_VALMASK; if (r < VT_CONST && (reg_classes[r] & rc)) { save_found: save_reg(r); @@ -812,7 +812,8 @@ ST_FUNC int gv(int rc) vtop[-1].r = r; /* save register value */ vtop->r = vtop[-1].r2; } - /* allocate second register */ + /* Allocate second register. Here we rely on the fact that + get_reg() tries first to free r2 of an SValue. */ r2 = get_reg(rc2); load(r2, vtop); vpop(); debian/control0000644000000000000000000000414011776556373010614 0ustar Source: tcc Section: devel Priority: optional Maintainer: Thomas Preud'homme Uploaders: Arthur Loiret Build-Depends: debhelper (>= 9), texi2html, texinfo, perl Standards-Version: 3.9.3 Homepage: http://www.tinycc.org/ DM-Upload-Allowed: yes Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/tcc.git Vcs-Git: git://anonscm.debian.org/collab-maint/tcc.git Package: tcc Architecture: any-i386 any-amd64 armel Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: libc6-dev | libc-dev Provides: c-compiler Description: small ANSI C compiler TCC (for Tiny C Compiler) is a small and fast ANSI C compiler. It generates optimized x86 code, and can compile, assemble, and link several times faster than 'gcc -O0'. Any C dynamic library can be used directly. It includes an optional memory and bounds checker, and bounds-checked code can be mixed freely with standard code. C script is also supported via the usual hash-bang mechanism. . NOTE: TCC is still somewhat experimental and is not recommended for production use. The code it generates is much less optimized than what GCC produces, and compiler bugs can have serious security consequences for your program. Package: libtcc-dev Section: libdevel Architecture: any-i386 any-amd64 armel Multi-Arch: same Depends: ${misc:Depends} Description: fast library for dynamic code generation Libtcc is a library that uses tcc, a compiler several times faster than 'gcc -O0' to perform dynamic code generation. It exposes in its API all operations tcc performs to generate a binary from sources: setting header and library paths, compiling program from a source file, manipulating its symbols and handling relocation of its code among other things. Libtcc is also able to compile from a buffer. . This package contains the static library and header file for TCC (Tiny C Compiler). . NOTE: libtcc is still somewhat experimental and is not recommended for production use. The code it generates is much less optimized than what GCC produces, and compiler bugs can have serious security consequences for your program. debian/changelog0000644000000000000000000005562512002555661011057 0ustar tcc (0.9.26~git20120612.ad5f375-6) unstable; urgency=low [Paul Tagliamonte] * Uploading Tom's fixes on his behalf. Although he's signed this upload (he issued a debdiff), I've prepared this upload. Fix verified on i386. [Thomas Preud'homme] * debian/patches: + Fix incorrect reading of long long values on architecture with 32bits registers like i386 and armel (Closes: #681281). -- Thomas Preud'homme Sat, 21 Jul 2012 03:43:35 +0200 tcc (0.9.26~git20120612.ad5f375-5) unstable; urgency=low * debian/patches: + Correctly handle integer promotion in patch fixing incorrect shift result type (Closes: #679123). * debian/control: + Set myself as Maintainer instead of Aurélien Gérôme as a result of him being MIA (Closes: #677782). -- Thomas Preud'homme Sun, 08 Jul 2012 17:36:15 +0200 tcc (0.9.26~git20120612.ad5f375-4) unstable; urgency=low * debian/patches: + Cherry-pick patch fixing incorrect shift result type (Closes: #679123). * debian/control: + Update Vcs-Browser URL. -- Thomas Preud'homme Wed, 27 Jun 2012 15:14:25 +0200 tcc (0.9.26~git20120612.ad5f375-3) unstable; urgency=low * debian/patches: + Disable the new callsave_test test on arm since it uses alloca which is not supported on arm (yet). -- Thomas Preud'homme Wed, 13 Jun 2012 22:31:30 +0200 tcc (0.9.26~git20120612.ad5f375-2) unstable; urgency=low * debian/patches: + Correctly handle multiarch on Kfreebsd and Hurd. -- Thomas Preud'homme Wed, 13 Jun 2012 18:34:11 +0200 tcc (0.9.26~git20120612.ad5f375-1) unstable; urgency=low * New upstream snapshot * debian/patches: + Fix R_ARM_REL32 relocation. + Expands arguments of configure script in order to accept ${prefix}. * debian/control: + Remove initial capital in package synopsis. + Update build dependency version on debhelper to reflect compatibility. * debian/rules: + Adapt to new upstream build system. + Remove build flags export as debhelper already does it. + Remove useless comments. * Bump compatibility to 9. * Add lintian overrides: + Upstream explicitly disable functions fortification, so do we. + Scripts in /usr/share/doc/tcc/examples are examples and need thus to be modified before used. -- Thomas Preud'homme Tue, 12 Jun 2012 18:06:17 +0200 tcc (0.9.26~git20120104.83d57c0-5) unstable; urgency=low * Document that -b is only available on i386 (Closes: #663692). * Correctly parse unsigned long constants (ex: 1UL) on amd64 (Closes: #663711). * Support arguments to linker options to be passed in separate linker options as in -Wl,-rpath -Wl, (Closes: #663693). -- Thomas Preud'homme Thu, 15 Mar 2012 00:39:47 +0100 tcc (0.9.26~git20120104.83d57c0-4) unstable; urgency=low * Upload to unstable. -- Thomas Preud'homme Tue, 06 Mar 2012 00:19:03 +0100 tcc (0.9.26~git20120104.83d57c0-3) experimental; urgency=low * Fix typo of an error about unknown size with bounded pointer arithmetic (Closes: #655110, thanks Urs Janssen). * Fix loading of LLOCAL floats (Closes: #656995). * Use version 1.0 for DEP5 copyright. * Bump Standards-Version to 3.9.3 (no changes needed). -- Thomas Preud'homme Mon, 05 Mar 2012 23:13:42 +0100 tcc (0.9.26~git20120104.83d57c0-2) experimental; urgency=low * Fix armel FTBFS by not compiling tccasm.c, as inline assembly is not supported on armel (Closes: #654904). -- Thomas Preud'homme Fri, 06 Jan 2012 18:37:50 +0100 tcc (0.9.26~git20120104.83d57c0-1) experimental; urgency=low * New upstream snapshot: + Make tcc search crt*.o files at the right location (Closes: #654631). + Incorporate the fix for linkage of named file in loader script (Closes: #654528). * debian/control: + Convert libtcc-dev to multiarch. * debian/rules: + Adapt to the new upstream build system. -- Thomas Preud'homme Thu, 05 Jan 2012 15:45:51 +0100 tcc (0.9.25-13) unstable; urgency=low * Fix linkage of named file in loader script (Closes: #654528). -- Thomas Preud'homme Wed, 04 Jan 2012 16:50:01 +0100 tcc (0.9.25-12) unstable; urgency=medium * Correct size_t and ptrdiff_t type on amd64 (Closes: #654436). -- Thomas Preud'homme Wed, 04 Jan 2012 11:30:56 +0100 tcc (0.9.25-11) unstable; urgency=medium * Change ELF interpreter from /lib/ld-linux-x86-64.so.2 — contrary to what announces previous entry — to /lib64/ld-linux-x86-64.so.2 (Closes: #653941). -- Thomas Preud'homme Tue, 03 Jan 2012 15:53:32 +0100 tcc (0.9.25-10) unstable; urgency=medium * Stop wrongly using multiarch dynamic loader as elf interpreter, eg. back to use /lib64/ld-linux-x86-64.so.2 for amd64 (Closes: #636541). -- Thomas Preud'homme Wed, 03 Aug 2011 18:04:35 +0200 tcc (0.9.26~git20110616.330d2ee-4) experimental; urgency=low * Replace old patch fixing Hurd FTBFS by the one accepted upstream. * Insert missing changelog for tcc 0.9.25-9. * Stop wrongly using multiarch dynamic loader as elf interpreter (eg. back to use /lib64/ld-linux-x86-64.so.2 for amd64). -- Thomas Preud'homme Sun, 31 Jul 2011 21:43:49 +0200 tcc (0.9.26~git20110616.330d2ee-3) experimental; urgency=low * Use any-i386 and any-amd64 instead of hardcoded list of architectures. * Fix Hurd FTBFS by forcing expr_cond to only consider constant expression outside functions. -- Thomas Preud'homme Sun, 31 Jul 2011 13:49:20 +0200 tcc (0.9.25-9) unstable; urgency=low * Stop exporting tcc_add_file2(), tcc_add_sysfile() and tcc_add_syslibrary_path() functions added for multiarch transitions. * Use any-i386 and any-amd64 instead of hardcoded list of architectures. -- Thomas Preud'homme Sun, 24 Jul 2011 21:27:09 +0200 tcc (0.9.26~git20110616.330d2ee-2) experimental; urgency=low * Don't define strtof and strtold on Debian GNU/kFreeBSD (fix FTBFS). -- Thomas Preud'homme Fri, 15 Jul 2011 18:16:26 +0200 tcc (0.9.26~git20110616.330d2ee-1) experimental; urgency=low * New upstream snapshot: + Fix design of previous VLA implementation + Allow jumps > 32MB for -run on ARM. (Closes: #592618) * debian/patches: + Remove all merged patches + Add 0001-Default-to-create-progs-with-symbols-incl.-debug.patch: create unstripped program with debug infos. + Add 0002-Make-ex1.c-and-ex4.c-be-executable-on-any-systems.patch * debian/copyright: + document origin of source code. * debian/rules: + Use dpkg-buildflags to set build flags (CPPFLAGS, CFLAGS and LDFLAGS). + Only call dh_auto_clean if config.mak exists. + Keep tcc directory in /usr/lib/tcc. * Point Vcs-* to anonscm.debian.org. -- Thomas Preud'homme Tue, 12 Jul 2011 16:59:57 +0200 tcc (0.9.25-8) unstable; urgency=low * Modify debian/rules to use patch added in 0.9.25-7 (Closes: #632089). * Get DEB_HOST_MULTIARCH from dpkg-architecture to ensure it is set when calling debian/rules manually. * Fix build failure on i386: array_test should not define any parameter. * Make patch for multilib consistent with regards to the filenames opened. -- Thomas Preud'homme Mon, 11 Jul 2011 14:22:57 +0200 tcc (0.9.25-7) unstable; urgency=medium (fix #632089) * Search system files and library in multilib path (Closes: #632089). -- Thomas Preud'homme Sun, 10 Jul 2011 17:22:36 +0200 tcc (0.9.25-6) unstable; urgency=low * Reactivate support for armel arch. * Attempt to solve test suite failure on armel. * Register documentation with doc-base. * Fix the license of win32/tools/tiny_libmaker.c with author's agreement. * Convert package to multiarch. * debian/patches: + Stricter test about declaration of static function without file scope in local block to not error out in wrong situations (regression fix). + Add function and variable assembly labels. * debian/compat: + Bump debhelper compatibility from 7 to 8 (no changes needed). * debian/copyright: + Update and convert to DEP5 candidate format. + Update address of FSF. + Remove duplicate notices and give redistribution license. * debian/control: + Bump Standards-Version to 3.9.2 (no changes needed). + Improve synopsis wording for tcc. * Remove useless debian/tcc.dirs file -- Thomas Preud'homme Mon, 18 Oct 2010 15:58:01 +0200 tcc (0.9.25-5) unstable; urgency=low * Drop support for armel arch. -- Thomas Preud'homme Sun, 05 Sep 2010 23:15:47 +0200 tcc (0.9.25-4) unstable; urgency=low * Fix bashims in configure and gcctestsuite.sh. * Add support for indirect functions as externals. * Bump Standard-Version from 3.8.4 to 3.9.1 (no changes needed). * debian/control: - Improve package description for libtcc-dev. -- Thomas Preud'homme Tue, 10 Aug 2010 00:10:30 +0200 tcc (0.9.25-3) unstable; urgency=low * Change Vcs fields to reference Alioth. * Don't load libtcc1.a if not available (fix a FTBFS on armel). * Link alias symbols together. (Closes: #452876) * Support C99 Variable-Length Arrays. (Closes: #439135) -- Thomas Preud'homme Sat, 01 May 2010 23:44:46 +0200 tcc (0.9.25-2) unstable; urgency=low * Make tcc build on armv5tel, armv6j and armv7a architectures. * Clean patches submitted upstream following upstream advice. * Also clean 438097_configure_allow_nostrip.diff patch. * Convert patches to DEP3 patch format. -- Thomas Preud'homme Tue, 20 Apr 2010 22:44:37 +0200 tcc (0.9.25-1) unstable; urgency=low * New upstream release (Closes: #549100, LP: #500296). - Supports amd64 architecture. * Fix Hurd FTBFS (Closes: #532503). * Improve tcc handling of ld scripts: libs in GROUP command are searched repeatedly, as required. * Add support for kfreebsd-amd64. * Cherry-pick 55cb217 from upstream to fix incorrect elf output on FreeBSD kernels. * Make the package compile on armel (Closes: #506517). * x86_64_alloca.diff: Add alloca on x86-64, from upstream commits 8ea8305 and dca2b15, to fix a test failure. * 528902_texi_direntry.diff: Add @dircategory and @direntry (Closes: #528902). * Complain for static fct declared without file scope (Closes: #170105). * Install the libtcc library in the new libtcc-dev package (Closes: #234245). * Remove unnecessary patches. - 322913_fix_casts_from_fp_to_bool.diff (already fixed in 0.9.24) - 474883_fix_segmentation_fault_when_compiling.diff - tcc-doc_texi_formatting.diff * Rewrite 419203_fix_sizeof_parse_error.diff patch. * Rebase patch on tcc version 0.9.25. * Add debian/watch file. * Switch to dpkg-source 3.0 (quilt) format. * Add DESTDIR support in configure script. * Move info file creation from debian/rules to upstream Makefile. * Use a dh based debian/rule Makefile. * Bump debhelper compatibility from 4 to 7 (no changes needed). * Bump Standard-Version from 3.8.0 to 3.8.4 (no changes needed). * Fill Vcs-Browser and Vcs-Git fields. * Correctly support DEB_BUILD_OPTIONS. * Don't rebuild the package if it was already built before. -- Thomas Preud'homme Sat, 17 Apr 2010 20:41:12 +0200 tcc (0.9.24-1) unstable; urgency=high [ Aurélien GÉRÔME ] * Change my email address in the Maintainer field. * Bump Standards-Version to 3.8.0. * Remove no longer used XS-Vcs-Git and XS-Vcs-Browser fields. * Add the DM-Upload-Allowed field for Arthur. [ Thomas Preud'homme ] * New Upstream Version - tcc now supports typename as structure field name (closes: #278698) - A long long value used as a test expression ignores the upper 32 bits at runtime (closes: #304082) * Remove unecessary patches: - 352202_fix_int_overflow.diff - 283066_add_va_copy_define.diff (already disabled) - 430209_fix_bound_check_error.diff * Clean all patches (no fuzz or offset problem anymore) * Add patch from Bradley Smith to allow compilation with gcc 4.3 (closes: #474883) * Add tcc-doc_texi_formatting.diff to correct formatting of tcc-doc.texi -- Thomas Preud'homme Mon, 16 Jun 2008 03:31:38 +0200 tcc (0.9.24~cvs20070502-2) unstable; urgency=low * 430209_fix_bound_check_error.diff: Add. (Closes: #430209) - Thanks to Thomas Preud'homme. * 438097_configure_allow_nostrip.diff: Add. (Closes: #438097) * Add myself to Uploaders, update debian/copyright accordingly. * debian/control: Use the new Homepage field. * Port on hurd-i386: - patches/series/hurd.diff: Add. - debian/control: Update Architecture list. -- Arthur Loiret Fri, 12 Oct 2007 04:31:48 +0200 tcc (0.9.24~cvs20070502-1) unstable; urgency=low [ Aurélien GÉRÔME ] * New maintainer and co-maintainer. (Closes: #420643) * Add the XS-Vcs-Git and XS-Vcs-Browser fields to debian/control. * Update homepage with the tiny URL in debian/control. * Remove unused ${misc:Depends} from debian/control. * Short description in debian/control is not a sentence, so start by a lowercase. * Remove unused debhelper tools from debian/rules. * Run test suite in debian/rules. * Remove .pc/ directory after build in the clean target of debian/rules. * Update debian/copyright. * TinyCC is no longer maintained upstream: use the latest CVS which contains some fixes. See the upstream Changelog for details. + Fix SIGSEGV due to tcc_load_dll() which read past the end of a buffer. (Closes: #418360) * Add quilt support. (Closes: #419423) Break out monolithic patch into the following patches: + buildsys.diff: - use "-O2 -g -Wall" as the Debian Policy recommends; + fhs.diff: - use FHS paths in examples and documentation; + 259619_error_init_char_array_with_non_literal.diff; + 283066_add_va_copy_define.diff: - disabled, merged upstream; + 322913_fix_casts_from_fp_to_bool.diff; + 372908_add_kfreebsd_arch.diff. * Add 352202_fix_int_overflow.diff to fix CVE-2006-0635, thanks to Rob Landley. (Closes: #352202) + The sizeof, __alignof, and __alignof__ statements now return an unsigned int. + Add a test case for this vulnerability. [ Thomas Preud'homme ] * Add 419203_fix_sizeof_parse_error.diff to fix a bad parsing in sizeof. (Closes: #419203) + Add two tests for sizeof without parenthesis. -- Aurélien GÉRÔME Tue, 08 May 2007 02:36:47 +0200 tcc (0.9.23-4) unstable; urgency=low * debian/control: Update description as suggested by Moritz Muehlenhoff (see #352202). -- Romain Francoise Sat, 23 Sep 2006 21:56:45 +0200 tcc (0.9.23-3) unstable; urgency=low * Add support for kfreebsd-i386, with thanks to Pierre Chifflier (closes: #372908). * Bumped Standards-Version to 3.7.2, no changes needed. -- Romain Francoise Fri, 14 Jul 2006 09:50:20 +0200 tcc (0.9.23-2) unstable; urgency=low * Apply patch from Marcelo Jimenez fixing casts from floating point types to _Bool (closes: #322913). * debian/copyright: Use new FSF postal address. -- Romain Francoise Fri, 2 Sep 2005 19:53:58 +0200 tcc (0.9.23-1) unstable; urgency=low * New upstream release. * Bumped Standards-Version to 3.6.2.1, no changes needed. -- Romain Francoise Sat, 18 Jun 2005 10:13:55 +0200 tcc (0.9.22-2) unstable; urgency=low * Apply patch from Hasso Tepper adding a va_copy macro to stdarg.h (closes: #283066). -- Romain Francoise Sat, 27 Nov 2004 18:00:46 +0100 tcc (0.9.22-1) unstable; urgency=low * New upstream release (closes: #279007). * Dropped patch by Brian Gough for const casts, this release has a better fix. -- Romain Francoise Mon, 8 Nov 2004 22:41:38 +0100 tcc (0.9.21-1) unstable; urgency=low * New upstream release, fixes long long arithmetic (closes: #267644). * debian/rules: Pass docdir to the upstream Makefile. * debian/tcc.docs: Remove tcc-doc.html, now installed. * Commented out build and installation of ARM and C67 binaries in upstream's Makefile since we don't ship them (yet). * This is the "TCC can now build a bootable Linux kernel" release. -- Romain Francoise Tue, 26 Oct 2004 12:22:36 +0200 tcc (0.9.20-5) unstable; urgency=low * Error out with an explicit message when trying to initialize a character array with something that's not a literal (optionally enclosed in braces) as per C99 6.7.8:14; thanks to Antti-Juhani Kaijanaho who did all the work (closes: #259619). -- Romain Francoise Sat, 24 Jul 2004 15:11:35 +0200 tcc (0.9.20-4) unstable; urgency=low * Apply patch from Antti-Juhani Kaijanaho to allow _Bool in bit-fields (closes: #259614). -- Romain Francoise Fri, 23 Jul 2004 17:38:29 +0200 tcc (0.9.20-3) unstable; urgency=low * Apply patch from Brian Gough to fix problems with const casts (closes: #199463). * debian/control: + Add URL markers to description. + Change Recommends to libc6-dev | libc-dev. -- Romain Francoise Sat, 19 Jun 2004 23:16:37 +0200 tcc (0.9.20-2) unstable; urgency=low * debian/changelog: Convert to UTF-8. * Replace "/usr/local/bin/tcc" with "/usr/bin/tcc" in documentation, since Debian ships tcc in /usr. * debian/rules: remove libtcc1.a in clean target. -- Romain Francoise Mon, 6 Oct 2003 19:49:43 +0200 tcc (0.9.20-1) unstable; urgency=low * New upstream release. -- Romain Francoise Sun, 5 Oct 2003 12:37:16 +0200 tcc (0.9.19-4) unstable; urgency=low * debian/control: Add Recommends on libc-dev, as it will most probably be useful. * Backport fixes from upstream CVS to fix problems with .gnu.linkonce sections (closes: #213047). -- Romain Francoise Sat, 4 Oct 2003 18:21:01 +0200 tcc (0.9.19-3) unstable; urgency=low * Backport fix from upstream CVS to fix problems with ld (closes: #213047). -- Romain Francoise Sun, 28 Sep 2003 13:22:11 +0200 tcc (0.9.19-2) unstable; urgency=low * debian/control: Update maintainer email address. * debian/copyright: Ditto. * Bumped Standards-Version to 3.6.1.0, no changes needed. -- Romain Francoise Sat, 27 Sep 2003 12:19:03 +0200 tcc (0.9.19-1) unstable; urgency=low * New upstream release (closes: #192939, #193491). * debian/copyright: upstream changed license to LGPL. * Bumped Standards-Version to 3.5.10, no changes needed. -- Romain Francoise Sat, 24 May 2003 19:23:17 +0200 tcc (0.9.18-3) unstable; urgency=low * Dummy upload, sponsor forgot to upload the .orig.tar.gz last time. -- Romain Francoise Sun, 20 Apr 2003 17:25:20 +0200 tcc (0.9.18-2) unstable; urgency=low * debian/control: Provide c-compiler. Suggested by José Luis González González . * debian/rules: Policy requires that shared object files be stripped, so strip object files installed in /usr/lib. -- Romain Francoise Sat, 19 Apr 2003 15:05:16 +0200 tcc (0.9.18-1) unstable; urgency=low * New upstream release (closes: #189457). * debian/rules: - Upstream tarball now includes a configure script, use it. - Do not install tcclib, it should be a separate binary package (and a shared library). - Upstream now provides a clean Texinfo file, so install it as /usr/share/info/tcc.info. * debian/control: Add Build-Depends on texinfo. * debian/tcc.{postinst,prerm}: Handle installation of the Info file. -- Romain Francoise Fri, 18 Apr 2003 20:37:09 +0200 tcc (0.9.16-7) unstable; urgency=low * Add new maintainer contact in debian/copyright. * Now use ${misc:Depends} in debian/control. * Bumped Standards-Version to 3.5.9. * Get rid of some DH_COMPAT variables. -- Romain Francoise Tue, 25 Mar 2003 16:00:54 +0100 tcc (0.9.16-6) unstable; urgency=low * I'm now the official maintainer, package sponsored by Cyril Bouthors until my NM application is finished. -- Romain Francoise Sun, 2 Mar 2003 18:49:54 +0100 tcc (0.9.16-5) unstable; urgency=low * Include examples from the upstream tarball since they demonstrate most of the interesting features of TCC. * Non-maintainer release. -- Romain Francoise Sun, 9 Feb 2003 20:40:16 +0100 tcc (0.9.16-4) unstable; urgency=low * Lintian check: refer to the Debian common license file for the GNU GPL in debian/copyright. * Reword the description and add upstream URL in debian/control. * Now use debhelper V4. * Non-maintainer release. -- Romain Francoise Sun, 9 Feb 2003 19:51:47 +0100 tcc (0.9.16-3) unstable; urgency=low * Bumped Standards-Version to 3.5.8. * Non-maintainer release. -- Romain Francoise Sat, 8 Feb 2003 17:07:52 +0100 tcc (0.9.16-2) unstable; urgency=low * Register tcc as an alternative to cc (closes: #175178). * Non-maintainer release. -- Romain Francoise Sat, 8 Feb 2003 15:54:03 +0100 tcc (0.9.16-1) unstable; urgency=low * New upstream release (closes: #179213). * Non-maintainer release. -- Romain Francoise Sat, 8 Feb 2003 11:36:57 +0100 tcc (0.9.14-1) unstable; urgency=low * New upstream release (closes: #170094, #170095, #170100, #170103). -- Cyril Bouthors Sun, 24 Nov 2002 19:02:56 +0100 tcc (0.9.13-1) unstable; urgency=low * New upstream release -- Cyril Bouthors Tue, 12 Nov 2002 01:59:39 +0100 tcc (0.9.12-1) unstable; urgency=low * New upstream release -- Cyril Bouthors Mon, 9 Sep 2002 07:51:47 +0200 tcc (0.9.11-1) unstable; urgency=low * New upstream release -- Cyril Bouthors Mon, 2 Sep 2002 17:47:10 +0200 tcc (0.9.10-1) unstable; urgency=low * New upstream release (closes: #155234) -- Cyril Bouthors Mon, 19 Aug 2002 11:15:56 +0200 tcc (0.9.9-1) unstable; urgency=low * New upstream release (closes: #151269). -- Cyril Bouthors Sun, 28 Jul 2002 04:27:42 +0200 tcc (0.9.7-2) unstable; urgency=low * Set Debian Architecture to i386 only (closes: #150919). -- Cyril Bouthors Mon, 1 Jul 2002 13:26:56 +0200 tcc (0.9.7-1) unstable; urgency=low * Initial Release (closes: #150241). -- Cyril Bouthors Mon, 17 Jun 2002 13:27:14 +0200 debian/tcc.prerm0000644000000000000000000000053411776556373011034 0ustar #!/bin/sh set -e case "$1" in remove|upgrade|deconfigure) if [ -L /usr/doc/tcc ]; then rm -f /usr/doc/tcc fi update-alternatives --quiet --remove cc /usr/bin/tcc; ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 0 ;; esac #DEBHELPER# exit 0 debian/rules0000755000000000000000000000037711776556373010301 0ustar #!/usr/bin/make -f override_dh_auto_configure: dh_auto_configure -- --tccdir=../tcc override_dh_auto_clean: [ ! -f config.mak ] || dh_auto_clean clean: rm -f build dh clean build: dh build touch build # As recommended by policy §4.9 %: dh $@ debian/tcc.docs0000644000000000000000000000003111776556373010627 0ustar README TODO tcc-doc.html debian/compat0000644000000000000000000000000211776556373010410 0ustar 9 debian/copyright0000644000000000000000000001047211776556373011151 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Tiny C Compiler Upstream-Contact: Fabrice Bellard Source: http://repo.or.cz/w/tinycc.git/snapshot/330d2ee0faf2849f6d861839e563422a1519c4c3.tar.gz License: GPL-2+ Files: * Copyright: 2001-2006, Fabrice Bellard License: LGPL-2+ Files: debian/* Copyright: 2002, Cyril Bouthors 2003-2006, Romain Francoise 2007-2010, Aurélien GÉRÔME , 2007-2010, Thomas Preud'homme , 2007-2010, Arthur Loiret License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: lib/libtcc1.c: Copyright: 1987, 1988, 1992, 1994, 1995, Free Software Foundation, Inc. 2002, Fabrice Bellard License: GPL-2+ Files: elf.h Copyright: 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. License: LGPL-2+ Files: stab.def Copyright: 1988, 1997, Free Software Foundation, Inc. License: LGPL-2+ Files: texi2pod.pl Copyright: 1999, 2000, 2001, Free Software Foundation, Inc. License: LGPL-2+ Files: arm-gen.c Copyright: 2003, Daniel Glöckner License: LGPL-2+ Files: tcccoff.c Copyright: 2003, 2004, TK 2004, Fabrice Bellard License: LGPL-2+ Files: win32/tools/tiny_impdef.c Copyright: 2005-2007, grischka License: GPL-2+ Files: tccpe.c Copyright: 2005-2007, grischka License: LGPL-2+ Files: win32/tools/tiny_libmaker.c Copyright: 2007, Timppa License: LGPL-2+ Files: x86_64-gen.c Copyright: 2008, Shinichiro Hamaji License: LGPL-2+ Files: il-opcodes.h Copyright: 2002, Fabrice Bellard License: GPL-2+ License: LGPL-2+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the full text of the GNU Lesser General Public License version 2 can be found in the file `/usr/share/common-licenses/LGPL-2'. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/watch0000644000000000000000000000014411776556373010242 0ustar version=3 http://download.savannah.nongnu.org/releases/tinycc/tcc-([\d\.]+).tar.bz2 debian uupdate debian/tcc.doc-base0000644000000000000000000000054611776556373011367 0ustar Document: tcc-doc Title: Tiny C Compiler Reference Documentation Author: Fabrice Bellard Abstract: This manual documents version of the Tiny C Compiler. Section: Programming Format: HTML Index: /usr/share/doc/tcc/tcc-doc.html Files: /usr/share/doc/tcc/tcc-doc.html Format: Info Index: /usr/share/info/tcc-doc.info.gz Files: /usr/share/info/tcc-doc.info.gz debian/tcc.examples0000644000000000000000000000001311776556373011515 0ustar examples/* debian/source/0000755000000000000000000000000011776556373010512 5ustar debian/source/format0000644000000000000000000000001411776556373011720 0ustar 3.0 (quilt) debian/tcc.info0000644000000000000000000000001511776556373010634 0ustar tcc-doc.info debian/tcc.postinst0000644000000000000000000000064411776556373011574 0ustar #!/bin/sh set -e case "$1" in configure) update-alternatives --quiet --install /usr/bin/cc cc /usr/bin/tcc 10 \ --slave /usr/share/man/man1/cc.1.gz cc.1.gz \ /usr/share/man/man1/tcc.1.gz; ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 0 ;; esac #DEBHELPER# exit 0