| Issue |
56010
|
| Summary |
[MSVC] __getcallerseflags not implemented
|
| Labels |
|
| Assignees |
|
| Reporter |
namazso
|
the [__getcallerseflags](https://docs.microsoft.com/en-us/cpp/intrinsics/getcallerseflags?view=msvc-170) intrinsic is seemingly not implemented in llvm.
test.c:
```c
#include <intrin.h>
#include <stdio.h>
int main() {
printf("%X\n", __getcallerseflags());
return 0;
}
```
output:
```
F:\Users\user>cl test.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.32.31329 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
test.c
Microsoft (R) Incremental Linker Version 14.32.31329.0
Copyright (C) Microsoft Corporation. All rights reserved.
/out:test.exe
test.obj
F:\Users\user>clang-cl test.c
test-6e90ef.obj : error LNK2019: unresolved external symbol __getcallerseflags referenced in function main
test.exe : fatal error LNK1120: 1 unresolved externals
clang-cl: error: linker command failed with exit code 1120 (use -v to see invocation)
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs