<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:nicolasweber@gmx.de" title="Nico Weber <nicolasweber@gmx.de>"> <span class="fn">Nico Weber</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - [ms] Broken codegen around SEH and __declspec(naked) inline asm"
href="https://bugs.llvm.org/show_bug.cgi?id=35056">bug 35056</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - [ms] Broken codegen around SEH and __declspec(naked) inline asm"
href="https://bugs.llvm.org/show_bug.cgi?id=35056#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - [ms] Broken codegen around SEH and __declspec(naked) inline asm"
href="https://bugs.llvm.org/show_bug.cgi?id=35056">bug 35056</a>
from <span class="vcard"><a class="email" href="mailto:nicolasweber@gmx.de" title="Nico Weber <nicolasweber@gmx.de>"> <span class="fn">Nico Weber</span></a>
</span></b>
<pre>Yes, works like so:
C:\src\chrome\src>type foo.cc
#include <windows.h>
__declspec(naked)
bool SafeTerminateProcess(HANDLE process, UINT exit_code) {
__asm {
push ebp
mov ebp, esp
push [ebp+12]
push [ebp+8]
call TerminateProcess
test eax, eax
setne al
mov esp, ebp
pop ebp
ret
}
}
void g() {
volatile int* p = 0;
*p = 4;
}
int main() {
__try {
g();
} __except(1) {
TerminateProcess(GetCurrentProcess(), 1);
}
}
That's not it.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>