diff options
| author | Omair Javaid <omair.javaid@linaro.org> | 2015-08-09 19:04:41 +0000 |
|---|---|---|
| committer | Omair Javaid <omair.javaid@linaro.org> | 2015-08-09 19:04:41 +0000 |
| commit | 2040548fcb7d5389e55634e3944bcfeba9afdcff (patch) | |
| tree | fe115a8f05f9bff7b5fb708a4acaaba0a8bbf2ac /lldb/source | |
| parent | 4232fb3f8d76ccdc09cb6456b04fa22c09af4538 (diff) | |
| download | bcm5719-llvm-2040548fcb7d5389e55634e3944bcfeba9afdcff.tar.gz bcm5719-llvm-2040548fcb7d5389e55634e3944bcfeba9afdcff.zip | |
Fix for build errors on arm-linux-gnueabi-gcc
http://reviews.llvm.org/D11256
llvm-svn: 244419
Diffstat (limited to 'lldb/source')
| -rw-r--r-- | lldb/source/Host/common/Host.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/Host/posix/PipePosix.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.h | 2 | ||||
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp | 2 |
4 files changed, 10 insertions, 2 deletions
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index 94c78a01565..c2f07ecf6bb 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -143,7 +143,11 @@ private: #endif // __linux__ #ifdef __linux__ +#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)) +static __thread volatile sig_atomic_t g_usr1_called; +#else static thread_local volatile sig_atomic_t g_usr1_called; +#endif static void SigUsr1Handler (int) diff --git a/lldb/source/Host/posix/PipePosix.cpp b/lldb/source/Host/posix/PipePosix.cpp index 0ed319facf9..8fdf97f2718 100644 --- a/lldb/source/Host/posix/PipePosix.cpp +++ b/lldb/source/Host/posix/PipePosix.cpp @@ -13,6 +13,10 @@ #include "llvm/ADT/SmallString.h" #include "llvm/Support/FileSystem.h" +#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)) +#define _GLIBCXX_USE_NANOSLEEP +#endif + #include <functional> #include <thread> diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h index 1632f7f6270..4ab2084044e 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h @@ -171,7 +171,7 @@ namespace process_linux { const ProcessLaunchInfo &m_launch_info; }; - typedef std::function<::pid_t(Error &)> InitialOperation; + typedef std::function< ::pid_t(Error &)> InitialOperation; // --------------------------------------------------------------------- // Private Instance Methods diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp index ccf4cce7a4a..481127a65b1 100644 --- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp @@ -31,7 +31,7 @@ #include <sys/syscall.h> // Try to define a macro to encapsulate the tgkill syscall #define tgkill(pid, tid, sig) \ - syscall(SYS_tgkill, static_cast<::pid_t>(pid), static_cast<::pid_t>(tid), sig) + syscall(SYS_tgkill, static_cast< ::pid_t>(pid), static_cast< ::pid_t>(tid), sig) using namespace lldb; using namespace lldb_private; |

