summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-04-18 07:48:45 +0000
committerJay Freeman <saurik@saurik.com>2008-04-18 07:48:45 +0000
commit3a49c5a904c7ef995348a724c88973cd340de67d (patch)
treeb176302793694b781e128ea0c8a7eb26dade476d /tool
parent2ec4ae625d1f4160ff99088f7b09b6eeb6aeca15 (diff)
Adding new locks.h change and removing old patches.
git-svn-id: http://svn.telesphoreo.org/trunk@223 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'tool')
-rw-r--r--tool/patches/llvm.diff13
-rw-r--r--tool/patches/llvmgcc.diff179
-rw-r--r--tool/patches/locks.diff11
3 files changed, 11 insertions, 192 deletions
diff --git a/tool/patches/llvm.diff b/tool/patches/llvm.diff
deleted file mode 100644
index 0376d8e15..000000000
--- a/tool/patches/llvm.diff
+++ /dev/null
@@ -1,13 +0,0 @@
-Index: lib/Target/ARM/ARMTargetAsmInfo.cpp
-===================================================================
---- lib/Target/ARM/ARMTargetAsmInfo.cpp (revision 47904)
-+++ lib/Target/ARM/ARMTargetAsmInfo.cpp (working copy)
-@@ -49,7 +49,7 @@
- PrivateGlobalPrefix = "L";
- BSSSection = 0; // no BSS section.
- ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill
-- SetDirective = "\t.set";
-+ SetDirective = "\t.set\t";
- WeakRefDirective = "\t.weak_reference\t";
- HiddenDirective = "\t.private_extern\t";
- ProtectedDirective = NULL;
diff --git a/tool/patches/llvmgcc.diff b/tool/patches/llvmgcc.diff
deleted file mode 100644
index a1f96983b..000000000
--- a/tool/patches/llvmgcc.diff
+++ /dev/null
@@ -1,179 +0,0 @@
-Index: libstdc++-v3/include/bits/c++config
-===================================================================
---- libstdc++-v3/include/bits/c++config (revision 47984)
-+++ libstdc++-v3/include/bits/c++config (working copy)
-@@ -172,7 +172,7 @@
- // are already explicitly instantiated in the library binary. This
- // substantially reduces the binary size of resulting executables.
- #ifndef _GLIBCXX_EXTERN_TEMPLATE
--# define _GLIBCXX_EXTERN_TEMPLATE 1
-+# define _GLIBCXX_EXTERN_TEMPLATE 0
- #endif
-
-
-Index: configure
-===================================================================
---- configure (revision 47984)
-+++ configure (working copy)
-@@ -1211,7 +1211,7 @@
- # APPLE LOCAL begin ARM darwin target
- arm-*-darwin*)
- noconfigdirs="$noconfigdirs target-libgomp target-libobjc"
-- noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libssp"
-+ noconfigdirs="$noconfigdirs target-libssp"
- # LLVM LOCAL begin
- noconfigdirs="$noconfigdirs target-boehm-gc target-libffi"
- noconfigdirs="$noconfigdirs target-libjava"
-Index: gcc/opts.c
-===================================================================
---- gcc/opts.c (revision 47984)
-+++ gcc/opts.c (working copy)
-@@ -1300,6 +1300,7 @@
- set_debug_level (enum debug_info_type type, int extended, const char *arg)
- {
- static bool type_explicit;
-+ return;
-
- use_gnu_debug_info_extensions = extended;
-
-Index: gcc/llvm-abi.h
-===================================================================
---- gcc/llvm-abi.h (revision 47984)
-+++ gcc/llvm-abi.h (working copy)
-@@ -206,7 +206,7 @@
- // should be returned using the aggregate shadow (sret) convention, 0 otherwise.
- // X may be evaluated more than once.
- #ifndef LLVM_SHOULD_RETURN_VECTOR_AS_SHADOW
--#define LLVM_SHOULD_RETURN_VECTOR_AS_SHADOW(X) 0
-+#define LLVM_SHOULD_RETURN_VECTOR_AS_SHADOW(X,Y) 0
- #endif
-
- /// DefaultABI - This class implements the default LLVM ABI where structures are
-Index: gcc/config/darwin.h
-===================================================================
---- gcc/config/darwin.h (revision 47984)
-+++ gcc/config/darwin.h (working copy)
-@@ -1038,6 +1038,7 @@
- /* Macros defining the various PIC cases. */
-
- /* APPLE LOCAL mdynamic-no-pic */
-+#undef MACHO_DYNAMIC_NO_PIC_P
- #define MACHO_DYNAMIC_NO_PIC_P (TARGET_MACHO_DYNAMIC_NO_PIC)
- /* APPLE LOCAL begin mach-o cleanup */
- #undef MACHOPIC_INDIRECT
-Index: gcc/config/arm/lib1funcs.asm
-===================================================================
---- gcc/config/arm/lib1funcs.asm (revision 47984)
-+++ gcc/config/arm/lib1funcs.asm (working copy)
-@@ -232,11 +232,7 @@
- .endm
-
- .macro FUNC_END name
--#if defined(__MACH__)
-- SIZE (__$0)
--#else
- SIZE (__\name)
--#endif
- .endm
-
- .macro DIV_FUNC_END name
-@@ -249,26 +245,15 @@
- #else
- ARM_LDIV0 \name
- #endif
--#if defined(__MACH__)
-- FUNC_END $0
--#else
- cfi_end LSYM(Lend_div0)
- FUNC_END \name
--#endif
- .endm
-
- .macro THUMB_FUNC_START name
--#if defined(__MACH__)
-- .globl SYM ($0)
-- TYPE ($0)
-- .thumb_func
--SYM ($0):
--#else
- .globl SYM (\name)
- TYPE (\name)
- .thumb_func
- SYM (\name):
--#endif
- .endm
- /* APPLE LOCAL end ARM MACH assembler */
-
-@@ -288,23 +273,13 @@
-
- /* APPLE LOCAL begin ARM MACH assembler */
- .macro FUNC_START name
--#if defined(__MACH__)
- .text
-- .globl SYM (__$0)
-- TYPE (__$0)
-- FUNC_ALIGN
-- THUMB_CODE
-- THUMB_FUNC
--SYM (__$0):
--#else
-- .text
- .globl SYM (__\name)
- TYPE (__\name)
- .align 0
- THUMB_CODE
- THUMB_FUNC
- SYM (__\name):
--#endif
- .endm
-
- /* Special function that will always be coded in ARM assembly, even if
-@@ -323,47 +298,26 @@
- .arm
- /* A hook to tell gdb that we've switched to ARM mode. Also used to call
- directly from other local arm routines. */
--#if defined(__MACH__)
--_L__$0:
--#else
- _L__\name:
--#endif
- .endm
- #define EQUIV .thumb_set
- /* Branch directly to a function declared with ARM_FUNC_START.
- Must be called in arm mode. */
- .macro ARM_CALL name
--#if defined(__MACH__)
-- bl _L__$0
--#else
- bl _L__\name
--#endif
- .endm
- #else
- .macro ARM_FUNC_START name
--#if defined(__MACH__)
- .text
-- .globl SYM (__$0)
-- TYPE (__$0)
-- .align 0
-- .arm
--SYM (__$0):
--#else
-- .text
- .globl SYM (__\name)
- TYPE (__\name)
- .align 0
- .arm
- SYM (__\name):
--#endif
- .endm
- #define EQUIV .set
- .macro ARM_CALL name
--#if defined(__MACH__)
-- bl SYM (__$0)
--#else
-- bl __\name
--#endif
-+ bl SYM (__\name)
- .endm
- #endif
-
diff --git a/tool/patches/locks.diff b/tool/patches/locks.diff
new file mode 100644
index 000000000..5a0f2d39b
--- /dev/null
+++ b/tool/patches/locks.diff
@@ -0,0 +1,11 @@
+--- /usr/include/machine/locks.h 2008-04-18 07:47:44.000000000 +0000
++++ /usr/include/machine/locks.h 2008-04-18 07:46:43.000000000 +0000
+@@ -27,6 +27,8 @@
+ #include "ppc/locks.h"
+ #elif defined (__i386__)
+ #include "i386/locks.h"
++#elif defined (__arm__)
++#include "arm/locks.h"
+ #else
+ #error architecture not supported
+ #endif