[PATCH] D126559: [MSVC] Fix pragma alloc_text failing for C files
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 21 06:20:23 PDT 2022
hans added a comment.
> Ignoring the `pragma alloc_text`, it looks like GCC compiles the following `foo` with C linkage vs LLVM which compiles with C++ linkage (foo's name is mangled):
The mangled name shouldn't matter since it has internal linkage. I tried dropping the `static`, and then foo doesn't seem to get mangled: https://godbolt.org/z/arzW5TbYz
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126559/new/
https://reviews.llvm.org/D126559
More information about the cfe-commits
mailing list