[llvm-bugs] [Bug 9744] clang++ emits wrong section name for x86_64-w64-mingw32 target

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 5 16:22:09 PDT 2018


Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
                 CC|                            |rnk at google.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Reid Kleckner <rnk at google.com> ---
I don't think we rely on the name of the section like this anymore. We make
comdats in a more straightforward way now.

For simple inline functions like this:
inline int foo(int a, int b) {
  return a + b;
int main() {
  return foo(1, 2);

We make a section like:
        .def     _Z3fooii;
        .scl    2;
        .type   32;
        .section        .text,"xr",discard,_Z3fooii
        .globl  _Z3fooii                # -- Begin function _Z3fooii
        .p2align        4, 0x90
_Z3fooii:                               # @_Z3fooii
.seh_proc _Z3fooii
# %bb.0:                                # %entry
        pushq   %rax
        .seh_stackalloc 8

See that .linkonce isn't used and the section is merely called ".text".

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180605/f57e451c/attachment.html>

More information about the llvm-bugs mailing list