Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch for Mac OS X 10.3 #1429

Closed
llvmbot opened this issue Dec 17, 2006 · 1 comment
Closed

patch for Mac OS X 10.3 #1429

llvmbot opened this issue Dec 17, 2006 · 1 comment
Labels
bugzilla Issues migrated from bugzilla mcjit portability

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Dec 17, 2006

Bugzilla Link 1057
Resolution FIXED
Resolved on Feb 22, 2010 12:46
Version trunk
OS MacOS X
Reporter LLVM Bugzilla Contributor

Extended Description

Following patch required to successfully compile (and link) lli - problem traced
to JIT.cpp:

Index: lib/ExecutionEngine/JIT/JIT.cpp

RCS file: /var/cvs/llvm/llvm/lib/ExecutionEngine/JIT/JIT.cpp,v
retrieving revision 1.83
diff -u -r1.83 JIT.cpp
--- lib/ExecutionEngine/JIT/JIT.cpp 12 Dec 2006 01:17:41 -0000 1.83
+++ lib/ExecutionEngine/JIT/JIT.cpp 17 Dec 2006 01:51:08 -0000
@@ -31,9 +31,10 @@

#ifdef APPLE
#include <AvailabilityMacros.h>
-#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4) || \

  • (MAC_OS_X_VERSION_MIN_REQUIRED == MAC_OS_X_VERSION_10_4 && \
  • __APPLE_CC__ >= 5330)
    

+#if defined(MAC_OS_X_VERSION_10_4) && \

  • ((MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4) || \
  • (MAC_OS_X_VERSION_MIN_REQUIRED == MAC_OS_X_VERSION_10_4 && \
    
  • __APPLE_CC__ >= 5330))
    

// __dso_handle is resolved by Mac OS X dynamic linker.
extern void *__dso_handle attribute ((visibility ("hidden")));
#endif
@@ -309,9 +310,10 @@
// If the global is external, just remember the address.
if (GV->isExternal()) {
#ifdef APPLE
-#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4) || \

  • (MAC_OS_X_VERSION_MIN_REQUIRED == MAC_OS_X_VERSION_10_4 && \
  • __APPLE_CC__ >= 5330)
    

+#if defined(MAC_OS_X_VERSION_10_4) && \

  • ((MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4) || \
  • (MAC_OS_X_VERSION_MIN_REQUIRED == MAC_OS_X_VERSION_10_4 && \
    
  •  __APPLE_CC__ >= 5330))
    
    // Apple gcc defaults to -fuse-cxa-atexit (i.e. calls __cxa_atexit instead
    // of atexit). It passes the address of linker generated symbol __dso_handle
    // to the function.
@lattner
Copy link
Collaborator

lattner commented Dec 17, 2006

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla mcjit portability
Projects
None yet
Development

No branches or pull requests

2 participants