From 4ec976ae9fa5cdd14e1f243f7150746a2f221e4d Mon Sep 17 00:00:00 2001 From: Karol Wojtaszek Date: Mon, 27 Sep 2004 15:39:59 +0000 Subject: Fixed gcc-3.4 compile issues. Ebuild clean up --- dev-lang/tcc/files/digest-tcc-0.9.14 | 1 - dev-lang/tcc/files/digest-tcc-0.9.16 | 1 - dev-lang/tcc/files/digest-tcc-0.9.7 | 1 - dev-lang/tcc/files/digest-tcc-0.9.8 | 1 - dev-lang/tcc/files/tcc-0.9.20-gcc34.patch | 75 +++++++++++++++++++++++++++++++ 5 files changed, 75 insertions(+), 4 deletions(-) delete mode 100644 dev-lang/tcc/files/digest-tcc-0.9.14 delete mode 100644 dev-lang/tcc/files/digest-tcc-0.9.16 delete mode 100644 dev-lang/tcc/files/digest-tcc-0.9.7 delete mode 100644 dev-lang/tcc/files/digest-tcc-0.9.8 create mode 100644 dev-lang/tcc/files/tcc-0.9.20-gcc34.patch (limited to 'dev-lang/tcc/files') diff --git a/dev-lang/tcc/files/digest-tcc-0.9.14 b/dev-lang/tcc/files/digest-tcc-0.9.14 deleted file mode 100644 index 830dd5d3da05..000000000000 --- a/dev-lang/tcc/files/digest-tcc-0.9.14 +++ /dev/null @@ -1 +0,0 @@ -MD5 d26a8fc2f319204824fc24b02f54918d tcc-0.9.14.tar.gz 154837 diff --git a/dev-lang/tcc/files/digest-tcc-0.9.16 b/dev-lang/tcc/files/digest-tcc-0.9.16 deleted file mode 100644 index 422de2ef7a56..000000000000 --- a/dev-lang/tcc/files/digest-tcc-0.9.16 +++ /dev/null @@ -1 +0,0 @@ -MD5 ea967671a6e2827424b8d234f7db8d9c tcc-0.9.16.tar.gz 175253 diff --git a/dev-lang/tcc/files/digest-tcc-0.9.7 b/dev-lang/tcc/files/digest-tcc-0.9.7 deleted file mode 100644 index 94886fb23738..000000000000 --- a/dev-lang/tcc/files/digest-tcc-0.9.7 +++ /dev/null @@ -1 +0,0 @@ -MD5 928161509f3f7d59dd50c6b53a18bbf9 tcc-0.9.7.tar.gz 105118 diff --git a/dev-lang/tcc/files/digest-tcc-0.9.8 b/dev-lang/tcc/files/digest-tcc-0.9.8 deleted file mode 100644 index 2f0796e37be0..000000000000 --- a/dev-lang/tcc/files/digest-tcc-0.9.8 +++ /dev/null @@ -1 +0,0 @@ -MD5 fa15a9f7d7ada821048f1896d590826e tcc-0.9.8.tar.gz 133061 diff --git a/dev-lang/tcc/files/tcc-0.9.20-gcc34.patch b/dev-lang/tcc/files/tcc-0.9.20-gcc34.patch new file mode 100644 index 000000000000..a703f5a4d105 --- /dev/null +++ b/dev-lang/tcc/files/tcc-0.9.20-gcc34.patch @@ -0,0 +1,75 @@ +--- tcc-0.9.20.orig/bcheck.c ++++ tcc-0.9.20/bcheck.c +@@ -76,7 +76,9 @@ + + /* currently, tcc cannot compile that because we use unsupported GNU C + extensions */ +-#if !defined(__TINYC__) ++#if defined(__TINYC__) ++#define __attribute__(ignore) ++#endif + void *__bound_ptr_add(void *p, int offset) __attribute__((regparm(2))); + void *__bound_ptr_indir1(void *p, int offset) __attribute__((regparm(2))); + void *__bound_ptr_indir2(void *p, int offset) __attribute__((regparm(2))); +@@ -86,7 +88,6 @@ + void *__bound_ptr_indir16(void *p, int offset) __attribute__((regparm(2))); + void __bound_local_new(void *p) __attribute__((regparm(1))); + void __bound_local_delete(void *p) __attribute__((regparm(1))); +-#endif + + void *__bound_malloc(size_t size, const void *caller); + void *__bound_memalign(size_t size, size_t align, const void *caller); +@@ -168,7 +169,7 @@ + + /* return '(p + offset)' for pointer arithmetic (a pointer can reach + the end of a region in this case */ +-void *__bound_ptr_add(void *p, int offset) ++void * __attribute__((regparm(2))) __bound_ptr_add(void *p, int offset) + { + unsigned long addr = (unsigned long)p; + BoundEntry *e; +@@ -194,7 +195,8 @@ + /* return '(p + offset)' for pointer indirection (the resulting must + be strictly inside the region */ + #define BOUND_PTR_INDIR(dsize) \ +-void *__bound_ptr_indir ## dsize (void *p, int offset) \ ++void * __attribute__((regparm(2))) __bound_ptr_indir ## dsize \ ++ (void *p, int offset) \ + { \ + unsigned long addr = (unsigned long)p; \ + BoundEntry *e; \ +@@ -227,7 +229,7 @@ + #endif + + /* called when entering a function to add all the local regions */ +-void __bound_local_new(void *p1) ++void __attribute__((regparm(1))) __bound_local_new(void *p1) + { + unsigned long addr, size, fp, *p = p1; + GET_CALLER_FP(fp); +@@ -243,7 +245,7 @@ + } + + /* called when leaving a function to delete all the local regions */ +-void __bound_local_delete(void *p1) ++void __attribute__((regparm(1))) __bound_local_delete(void *p1) + { + unsigned long addr, fp, *p = p1; + GET_CALLER_FP(fp); +@@ -266,13 +268,14 @@ + { + } + +-void *__bound_ptr_add(void *p, int offset) ++void * __attribute__((regparm(2))) __bound_ptr_add(void *p, int offset) + { + return p + offset; + } + + #define BOUND_PTR_INDIR(dsize) \ +-void *__bound_ptr_indir ## dsize (void *p, int offset) \ ++void * __attribute__((regparm(2))) __bound_ptr_indir ## dsize\ ++ (void *p, int offset)\ + { \ + return p + offset; \ + } -- cgit v1.2.3-65-gdbad