diff options
| author | James Clarke | 2014-07-24 12:12:39 +0100 |
|---|---|---|
| committer | Misty De Meo | 2014-08-01 08:07:22 -0700 |
| commit | 511d8a7053cd7329e831e97ecc4edfa317f09c9e (patch) | |
| tree | 584f22042b31e051a447dcc7acb60549eb4ffd5c | |
| parent | ff86702dd85eab420f6f58e8dcf8375dae4b22b9 (diff) | |
| download | homebrew-511d8a7053cd7329e831e97ecc4edfa317f09c9e.tar.bz2 | |
GCC: Tiger-specific patch was fixed upstream
Closes #31089.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
| -rw-r--r-- | Library/Formula/gcc.rb | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/Library/Formula/gcc.rb b/Library/Formula/gcc.rb index 635c363d1..9ffc0ff15 100644 --- a/Library/Formula/gcc.rb +++ b/Library/Formula/gcc.rb @@ -50,10 +50,6 @@ class Gcc < Formula # The as that comes with Tiger isn't capable of dealing with the # PPC asm that comes in libitm depends_on "cctools" => :build - # GCC 4.8.1 incorrectly determines that _Unwind_GetIPInfo is available on - # Tiger, resulting in a failed build - # Fixed upstream: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58710 - patch :DATA end fails_with :gcc_4_0 @@ -204,119 +200,3 @@ class Gcc < Formula end end end - -__END__ -diff --git a/libbacktrace/backtrace.c b/libbacktrace/backtrace.c -index 428f53a..a165197 100644 ---- a/libbacktrace/backtrace.c -+++ b/libbacktrace/backtrace.c -@@ -35,6 +35,14 @@ POSSIBILITY OF SUCH DAMAGE. */ - #include "unwind.h" - #include "backtrace.h" - -+#ifdef __APPLE__ -+/* On MacOS X, versions older than 10.5 don't export _Unwind_GetIPInfo. */ -+#undef HAVE_GETIPINFO -+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 -+#define HAVE_GETIPINFO 1 -+#endif -+#endif -+ - /* The main backtrace_full routine. */ - - /* Data passed through _Unwind_Backtrace. */ -diff --git a/libbacktrace/simple.c b/libbacktrace/simple.c -index b03f039..9f3a945 100644 ---- a/libbacktrace/simple.c -+++ b/libbacktrace/simple.c -@@ -35,6 +35,14 @@ POSSIBILITY OF SUCH DAMAGE. */ - #include "unwind.h" - #include "backtrace.h" - -+#ifdef __APPLE__ -+/* On MacOS X, versions older than 10.5 don't export _Unwind_GetIPInfo. */ -+#undef HAVE_GETIPINFO -+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 -+#define HAVE_GETIPINFO 1 -+#endif -+#endif -+ - /* The simple_backtrace routine. */ - - /* Data passed through _Unwind_Backtrace. */ -diff --git a/libgcc/unwind-c.c b/libgcc/unwind-c.c -index b937d9d..1121dce 100644 ---- a/libgcc/unwind-c.c -+++ b/libgcc/unwind-c.c -@@ -30,6 +30,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - #define NO_SIZE_OF_ENCODED_VALUE - #include "unwind-pe.h" - -+#ifdef __APPLE__ -+/* On MacOS X, versions older than 10.5 don't export _Unwind_GetIPInfo. */ -+#undef HAVE_GETIPINFO -+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 -+#define HAVE_GETIPINFO 1 -+#endif -+#endif -+ - typedef struct - { - _Unwind_Ptr Start; -diff --git a/libgfortran/runtime/backtrace.c b/libgfortran/runtime/backtrace.c -index 3b58118..9a00066 100644 ---- a/libgfortran/runtime/backtrace.c -+++ b/libgfortran/runtime/backtrace.c -@@ -40,6 +40,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - #include "unwind.h" - - -+#ifdef __APPLE__ -+/* On MacOS X, versions older than 10.5 don't export _Unwind_GetIPInfo. */ -+#undef HAVE_GETIPINFO -+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 -+#define HAVE_GETIPINFO 1 -+#endif -+#endif -+ - /* Macros for common sets of capabilities: can we fork and exec, and - can we use pipes to communicate with the subprocess. */ - #define CAN_FORK (defined(HAVE_FORK) && defined(HAVE_EXECVE) \ -diff --git a/libgo/runtime/go-unwind.c b/libgo/runtime/go-unwind.c -index c669a3c..9e848db 100644 ---- a/libgo/runtime/go-unwind.c -+++ b/libgo/runtime/go-unwind.c -@@ -18,6 +18,14 @@ - #include "go-defer.h" - #include "go-panic.h" - -+#ifdef __APPLE__ -+/* On MacOS X, versions older than 10.5 don't export _Unwind_GetIPInfo. */ -+#undef HAVE_GETIPINFO -+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 -+#define HAVE_GETIPINFO 1 -+#endif -+#endif -+ - /* The code for a Go exception. */ - - #ifdef __ARM_EABI_UNWINDER__ -diff --git a/libobjc/exception.c b/libobjc/exception.c -index 4b05611..8ff70f9 100644 ---- a/libobjc/exception.c -+++ b/libobjc/exception.c -@@ -31,6 +31,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - #include "unwind-pe.h" - #include <string.h> /* For memcpy */ - -+#ifdef __APPLE__ -+/* On MacOS X, versions older than 10.5 don't export _Unwind_GetIPInfo. */ -+#undef HAVE_GETIPINFO -+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 -+#define HAVE_GETIPINFO 1 -+#endif -+#endif -+ - /* 'is_kind_of_exception_matcher' is our default exception matcher - - it determines if the object 'exception' is of class 'catch_class', - or of a subclass. */ |
