[llvm-bugs] [Bug 37997] Compiler generating assembly that causes a warning about incorrect section attributes when assembled
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 16 18:40:35 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37997
Douglas Yung <douglas_yung at playstation.sony.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #2 from Douglas Yung <douglas_yung at playstation.sony.com> ---
I just realized there is another section that also has a similar issue.
Consider the following code:
/* test.cc */
class A {
public:
A () {}
};
A a;
If you compile this to an assembly file, and then try to assemble the
compiler-generated assembly file, the compiler issues a warning.
clang -S test.cc -o test.s
clang -c test.s
test.s:23:2: warning: setting incorrect section attributes for .text._ZN1AC2Ev
.section .text._ZN1AC2Ev,"axG", at progbits,_ZN1AC2Ev,comdat
^
--
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/20180717/7a2993f9/attachment.html>
More information about the llvm-bugs
mailing list