diff options
author | Tim Harder <radhermit@gentoo.org> | 2014-03-07 02:37:07 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2014-03-07 02:37:07 +0000 |
commit | 8f60c81d25206604e8543324a5c14884c8f517a6 (patch) | |
tree | c8b3b9279266f981029897675230a5ca73d5a85e /dev-lang/tcc/files | |
parent | Cleanup old. (diff) | |
download | historical-8f60c81d25206604e8543324a5c14884c8f517a6.tar.gz historical-8f60c81d25206604e8543324a5c14884c8f517a6.tar.bz2 historical-8f60c81d25206604e8543324a5c14884c8f517a6.zip |
Remove old, unused patches.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'dev-lang/tcc/files')
-rw-r--r-- | dev-lang/tcc/files/tcc-0.9.23-anonunion.patch | 49 | ||||
-rw-r--r-- | dev-lang/tcc/files/tcc-0.9.23-asneeded.patch | 44 | ||||
-rw-r--r-- | dev-lang/tcc/files/tcc-0.9.23-nxbit.patch | 68 | ||||
-rw-r--r-- | dev-lang/tcc/files/tcc-0.9.25-flags.patch | 83 |
4 files changed, 0 insertions, 244 deletions
diff --git a/dev-lang/tcc/files/tcc-0.9.23-anonunion.patch b/dev-lang/tcc/files/tcc-0.9.23-anonunion.patch deleted file mode 100644 index 8af0825bd23e..000000000000 --- a/dev-lang/tcc/files/tcc-0.9.23-anonunion.patch +++ /dev/null @@ -1,49 +0,0 @@ -http://lists.gnu.org/archive/html/tinycc-devel/2005-07/msg00008.html - ---- tcc.c -+++ tcc.c -@@ -6442,7 +6487,7 @@ - { - int a, v, size, align, maxalign, c, offset; - int bit_size, bit_pos, bsize, bt, lbit_pos; -- Sym *s, *ss, **ps; -+ Sym *s, *ss, *ass, **ps; - AttributeDef ad; - CType type1, btype; - -@@ -6513,7 +6558,9 @@ - v = 0; - type1 = btype; - if (tok != ':') { -- type_decl(&type1, &ad, &v, TYPE_DIRECT); -+ type_decl(&type1, &ad, &v, TYPE_DIRECT | TYPE_ABSTRACT); -+ if (v == 0 && (type1.t & VT_BTYPE) != VT_STRUCT) -+ expect("identifier"); - if ((type1.t & VT_BTYPE) == VT_FUNC || - (type1.t & (VT_TYPEDEF | VT_STATIC | VT_EXTERN | VT_INLINE))) - error("invalid type for '%s'", -@@ -6576,7 +6623,7 @@ - } else { - bit_pos = 0; - } -- if (v) { -+ if (v != 0 || (type1.t & VT_BTYPE) == VT_STRUCT) { - /* add new memory data only if starting - bit field */ - if (lbit_pos == 0) { -@@ -6602,6 +6649,15 @@ - } - printf("\n"); - #endif -+ } -+ if (v == 0 && (type1.t & VT_BTYPE) == VT_STRUCT) { -+ ass = type1.ref; -+ while ((ass = ass->next) != NULL) { -+ ss = sym_push(ass->v, &ass->type, 0, offset + ass->c); -+ *ps = ss; -+ ps = &ss->next; -+ } -+ } else if (v) { - ss = sym_push(v | SYM_FIELD, &type1, 0, offset); - *ps = ss; - ps = &ss->next; diff --git a/dev-lang/tcc/files/tcc-0.9.23-asneeded.patch b/dev-lang/tcc/files/tcc-0.9.23-asneeded.patch deleted file mode 100644 index da757720d929..000000000000 --- a/dev-lang/tcc/files/tcc-0.9.23-asneeded.patch +++ /dev/null @@ -1,44 +0,0 @@ -http://lists.gnu.org/archive/html/tinycc-devel/2005-08/msg00011.html - ---- tccelf.c -+++ tccelf.c -@@ -2300,19 +2300,27 @@ - expect("("); - t = ld_next(s1, filename, sizeof(filename)); - for(;;) { -- if (t == LD_TOK_EOF) { -- error_noabort("unexpected end of file"); -- return -1; -- } else if (t == ')') { -- break; -- } else if (t != LD_TOK_NAME) { -- error_noabort("filename expected"); -- return -1; -- } -- tcc_add_file(s1, filename); -- t = ld_next(s1, filename, sizeof(filename)); -- if (t == ',') { -+ if (strcmp(filename, "AS_NEEDED")) { -+ if (t == LD_TOK_EOF) { -+ error_noabort("unexpected end of file"); -+ return -1; -+ } else if (t == ')') { -+ break; -+ } else if (t != LD_TOK_NAME) { -+ error_noabort("filename expected"); -+ return -1; -+ } -+ tcc_add_file(s1, filename); - t = ld_next(s1, filename, sizeof(filename)); -+ if (t == ',') { -+ t = ld_next(s1, filename, sizeof(filename)); -+ } -+ } else { -+ /* TODO: Implement AS_NEEDED support. Ignore it for now */ -+ do { -+ t = ld_next(s1, filename, sizeof(cmd)); -+ } while (t != ')'); -+ t = ld_next(s1, filename, sizeof(cmd)); - } - } - } else if (!strcmp(cmd, "OUTPUT_FORMAT") || diff --git a/dev-lang/tcc/files/tcc-0.9.23-nxbit.patch b/dev-lang/tcc/files/tcc-0.9.23-nxbit.patch deleted file mode 100644 index c64dd4047bb8..000000000000 --- a/dev-lang/tcc/files/tcc-0.9.23-nxbit.patch +++ /dev/null @@ -1,68 +0,0 @@ -=================================================================== -RCS file: /sources/tinycc/tinycc/tcc.c,v -retrieving revision 1.172 -retrieving revision 1.173 -diff -u -r1.172 -r1.173 ---- tinycc/tcc.c 2005/06/17 22:05:58 1.172 -+++ tinycc/tcc.c 2005/09/03 18:31:43 1.173 -@@ -40,14 +40,20 @@ - #include <time.h> - #ifdef WIN32 - #include <sys/timeb.h> -+#include <windows.h> - #endif - #ifndef WIN32 - #include <sys/time.h> - #include <sys/ucontext.h> -+#include <sys/mman.h> - #endif - - #endif /* !CONFIG_TCCBOOT */ - -+#ifndef PAGESIZE -+#define PAGESIZE 4096 -+#endif -+ - #include "elf.h" - #include "stab.h" - -@@ -199,7 +205,7 @@ - int sh_entsize; /* elf entry size */ - unsigned long sh_size; /* section size (only used during output) */ - unsigned long sh_addr; /* address at which the section is relocated */ -- unsigned long sh_offset; /* address at which the section is relocated */ -+ unsigned long sh_offset; /* file offset */ - int nb_hashed_syms; /* used to resize the hash table */ - struct Section *link; /* link to another section */ - struct Section *reloc; /* corresponding section for relocation, if any */ -@@ -9615,6 +9621,30 @@ - if (s->reloc) - relocate_section(s1, s); - } -+ -+ /* mark executable sections as executable in memory */ -+ for(i = 1; i < s1->nb_sections; i++) { -+ s = s1->sections[i]; -+ if ((s->sh_flags & (SHF_ALLOC | SHF_EXECINSTR)) == -+ (SHF_ALLOC | SHF_EXECINSTR)) { -+#ifdef WIN32 -+ { -+ DWORD old_protect; -+ VirtualProtect(s->data, s->data_offset, -+ PAGE_EXECUTE_READWRITE, &old_protect); -+ } -+#else -+ { -+ unsigned long start, end; -+ start = (unsigned long)(s->data) & ~(PAGESIZE - 1); -+ end = (unsigned long)(s->data + s->data_offset); -+ end = (end + PAGESIZE - 1) & ~(PAGESIZE - 1); -+ mprotect((void *)start, end - start, -+ PROT_READ | PROT_WRITE | PROT_EXEC); -+ } -+#endif -+ } -+ } - return 0; - } - diff --git a/dev-lang/tcc/files/tcc-0.9.25-flags.patch b/dev-lang/tcc/files/tcc-0.9.25-flags.patch deleted file mode 100644 index 42ac9f3bfbfa..000000000000 --- a/dev-lang/tcc/files/tcc-0.9.25-flags.patch +++ /dev/null @@ -1,83 +0,0 @@ -diff --git a/Makefile b/Makefile -index 1a2b5f7..30526b2 100644 ---- a/Makefile -+++ b/Makefile -@@ -115,32 +115,32 @@ all: $(PROGS) $(LIBTCC1) $(BCHECK_O) libtcc.a tcc-doc.html tcc.1 libtcc_test$(EX - - # Host Tiny C Compiler - tcc$(EXESUF): $(NATIVE_FILES) -- $(CC) -o $@ $< $(NATIVE_TARGET) $(CFLAGS) $(LIBS) -+ $(CC) -o $@ $(NATIVE_TARGET) $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - # Cross Tiny C Compilers - i386-tcc$(EXESUF): $(I386_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_I386 $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_I386 $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - i386-win32-tcc$(EXESUF): $(WIN32_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_PE $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_PE $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - x86_64-tcc$(EXESUF): $(X86_64_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_X86_64 $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_X86_64 $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - c67-tcc$(EXESUF): $(C67_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_C67 $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_C67 $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - arm-tcc-fpa$(EXESUF): $(ARM_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_ARM $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_ARM $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - arm-tcc-fpa-ld$(EXESUF): $(ARM_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_ARM -DLDOUBLE_SIZE=12 $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_ARM -DLDOUBLE_SIZE=12 $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - arm-tcc-vfp$(EXESUF): $(ARM_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_ARM -DTCC_ARM_VFP $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_ARM -DTCC_ARM_VFP $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - arm-tcc-vfp-eabi$(EXESUF): $(ARM_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_ARM -DTCC_ARM_EABI $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_ARM -DTCC_ARM_EABI $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - # libtcc generation and test - libtcc.o: $(NATIVE_FILES) -@@ -150,14 +150,14 @@ libtcc.a: libtcc.o - $(AR) rcs $@ $^ - - libtcc_test$(EXESUF): tests/libtcc_test.c libtcc.a -- $(CC) -o $@ $^ -I. $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -I. $(CFLAGS) $(LDFLAGS) $^ $(LIBS) - - libtest: libtcc_test$(EXESUF) $(LIBTCC1) - ./libtcc_test$(EXESUF) lib_path=. - - # profiling version - tcc_p$(EXESUF): $(NATIVE_FILES) -- $(CC) -o $@ $< $(NATIVE_TARGET) $(CFLAGS_P) $(LIBS_P) -+ $(CC) -o $@ $(NATIVE_TARGET) $(CFLAGS_P) $(LDFLAGS) $< $(LIBS_P) - - # windows utilities - tiny_impdef$(EXESUF): win32/tools/tiny_impdef.c -@@ -180,16 +180,16 @@ LIBTCC1_OBJS+=alloca86.o alloca86-bt.o - endif - - %.o: %.c -- $(LIBTCC1_CC) -o $@ -c $< -O2 -Wall -+ $(LIBTCC1_CC) $(CFLAGS) -c $< -o $@ - - %.o: %.S -- $(LIBTCC1_CC) -o $@ -c $< -+ $(LIBTCC1_CC) $(ASFLAGS) -c $< -o $@ - - libtcc1.a: $(LIBTCC1_OBJS) - $(AR) rcs $@ $^ - - bcheck.o: bcheck.c -- $(CC) -o $@ -c $< -O2 -Wall -+ $(CC) $(CFLAGS) -c $< -o $@ - - # install - TCC_INCLUDES = stdarg.h stddef.h stdbool.h float.h varargs.h tcclib.h |