<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:douglas_yung@playstation.sony.com" title="Douglas Yung <douglas_yung@playstation.sony.com>"> <span class="fn">Douglas Yung</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Compiler generating assembly that causes a warning about incorrect section attributes when assembled"
href="https://bugs.llvm.org/show_bug.cgi?id=37997">bug 37997</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;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>FIXED
</td>
<td>---
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Compiler generating assembly that causes a warning about incorrect section attributes when assembled"
href="https://bugs.llvm.org/show_bug.cgi?id=37997#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Compiler generating assembly that causes a warning about incorrect section attributes when assembled"
href="https://bugs.llvm.org/show_bug.cgi?id=37997">bug 37997</a>
from <span class="vcard"><a class="email" href="mailto:douglas_yung@playstation.sony.com" title="Douglas Yung <douglas_yung@playstation.sony.com>"> <span class="fn">Douglas Yung</span></a>
</span></b>
<pre>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",@progbits,_ZN1AC2Ev,comdat
^</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>