[vmkit-commits] [vmkit] r65495 - /vmkit/trunk/include/mvm/Threads/Thread.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Wed Feb 25 16:49:44 PST 2009
Author: geoffray
Date: Wed Feb 25 18:49:43 2009
New Revision: 65495
URL: http://llvm.org/viewvc/llvm-project?rev=65495&view=rev
Log:
The comment was wrong: GCC is doing the right thing.
Modified:
vmkit/trunk/include/mvm/Threads/Thread.h
Modified: vmkit/trunk/include/mvm/Threads/Thread.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/include/mvm/Threads/Thread.h?rev=65495&r1=65494&r2=65495&view=diff
==============================================================================
--- vmkit/trunk/include/mvm/Threads/Thread.h (original)
+++ vmkit/trunk/include/mvm/Threads/Thread.h Wed Feb 25 18:49:43 2009
@@ -85,14 +85,7 @@
#define FRAME_IP(fp) (fp[1])
#endif
-// Apparently gcc for i386 and family considers __builtin_frame_address(0) to
-// return the caller, not the current function.
-#if defined(__i386__) || defined(i386) || defined(_M_IX86) || \
- defined(__x86_64__) || defined(_M_AMD64)
-#define FRAME_PTR() __builtin_frame_address(0)
-#else
#define FRAME_PTR() (((void**)__builtin_frame_address(0))[0])
-#endif
/// Thread - This class is the base of custom virtual machines' Thread classes.
/// It provides static functions to manage threads. An instance of this class
More information about the vmkit-commits
mailing list