Displaying 5 results from an estimated 5 matches for "_addressofreturnaddress".
2006 Jan 26
0
[LLVMdev] VS2005 patch
....14 X86JITInfo.cpp
> --- lib/Target/X86/X86JITInfo.cpp 22 Jul 2005 20:49:37 -0000 1.14
> +++ lib/Target/X86/X86JITInfo.cpp 26 Jan 2006 15:28:54 -0000
> @@ -20,6 +20,11 @@
> #include <iostream>
> using namespace llvm;
>
> +#ifdef _MSC_VER
> + extern "C" void *_AddressOfReturnAddress(void);
> + #pragma intrinsic(_AddressOfReturnAddress)
> +#endif
> +
> void X86JITInfo::replaceMachineCodeForFunction(void *Old, void *New) {
> unsigned char *OldByte = (unsigned char *)Old;
> *OldByte++ = 0xE9; // Emit JMP opcode.
> @@ -64,9 +69,6 @@
>...
2006 Jan 26
4
[LLVMdev] VS2005 patch
OK, fixed the problem with the intrin.h header that doesn't exist in previous versions of VS...
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: JIT.patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060126/7e55b0d0/attachment.ksh>
2006 Jan 26
2
[LLVMdev] VS2005 patch
...lib/Target/X86/X86JITInfo.cpp 22 Jul 2005 20:49:37 -0000 1.14
>> +++ lib/Target/X86/X86JITInfo.cpp 26 Jan 2006 15:28:54 -0000
>> @@ -20,6 +20,11 @@
>> #include <iostream>
>> using namespace llvm;
>>
>> +#ifdef _MSC_VER
>> + extern "C" void *_AddressOfReturnAddress(void);
>> + #pragma intrinsic(_AddressOfReturnAddress)
>> +#endif
>> +
>> void X86JITInfo::replaceMachineCodeForFunction(void *Old, void *New) {
>> unsigned char *OldByte = (unsigned char *)Old;
>> *OldByte++ = 0xE9; // Emit JMP opcode.
>&g...
2015 Apr 27
4
[LLVMdev] Invalid or unaligned stack exception on Windows
...e
allocating stack manually, but I could be wrong.
What triple are you using with LLVM to generate code?
There isn't much else information here, but you can try to zero in on the
problem by checking the stack alignment manually with a helper like:
void CheckAlignment() {
assert((((uintptr_t)_AddressOfReturnAddress() + 8) & 15) == 0);
}
Run this near where LLVM calls back into C code. If it fails, disassemble
the calling LLVM function and look at that to see if there's something
wrong with the prologue. Sending that along with any followups would be
helpful.
On Sat, Apr 25, 2015 at 3:07 PM, Dibyendu...
2015 Apr 25
2
[LLVMdev] Invalid or unaligned stack exception on Windows
Hi,
I wrote sometime ago about this issue (see links below).
http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/084089.html
http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-April/084193.html
At the time I thought the problem was due to a bug in my code, and
that I had fixed it. But sadly it seems that the issue is still
present - it just got hidden by whatever change I made.
The error only