<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - error: expected '@' or '%' before type"
href="http://llvm.org/bugs/show_bug.cgi?id=17270">17270</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>error: expected '@' or '%' before type
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>MC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>martin@martincmartin.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11227" name="attach_11227" title="Preprocessed source that generates the error">attachment 11227</a> <a href="attachment.cgi?id=11227&action=edit" title="Preprocessed source that generates the error">[details]</a></span>
Preprocessed source that generates the error
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - section flag "?" not implemented"
href="show_bug.cgi?id=17198">Bug 17198</a> fixed the first problem when compiling SystemTap's DTRACE_PROBE()
macro. My clang++ includes that fix:
$ clang++ --version
clang version 3.4 (trunk 190785)
Target: x86_64-unknown-linux-gnu
Thread model: posix
The next problem is:
dtrace_probe_preprocessed_stripped.cpp:125:49: error: expected '@' or '%'
before type
do { __asm__ __volatile__ ("990: nop" "\n" ".pushsection .note.stapsdt" ","
"\"?\"" "," "\"note\"" "\n" ".ba...
^
<inline asm>:2:32: note: instantiated into assembly here
.pushsection .note.stapsdt,"?","note"
^
dtrace_probe_preprocessed_stripped.cpp:125:378: error: .popsection without
corresponding .pushsection
...0" "\n" ".asciz \"a\"" "\n" ".asciz \"b\"" "\n" ".asciz \"\"" "\n" "994:
.balign 4" "\n" ".popsection" "\n" :: [...
^
<inline asm>:14:12: note: instantiated into assembly here
.popsection
^
dtrace_probe_preprocessed_stripped.cpp:125:476: error: expected '@' or '%'
before type
...".popsection" "\n" :: [__sdt_dummy] "g" (0)); __asm__ __volatile__
(".ifndef _.stapsdt.base" "\n" ".pushsection ...
^
<inline asm>:2:33: note: instantiated into assembly here
.pushsection .stapsdt.base,"aG","progbits",.stapsdt.base,comdat
^
dtrace_probe_preprocessed_stripped.cpp:125:701: error: .popsection without
corresponding .pushsection
..._.stapsdt.base" "\n" "_.stapsdt.base: .space 1" "\n" ".size
_.stapsdt.base" "," "1" "\n" ".popsection" "\n" ".en...
^
<inline asm>:7:12: note: instantiated into assembly here
.popsection
^
4 errors generated.
Source was simply:
#include <sys/sdt.h>
int main() {
DTRACE_PROBE(a, b);
}
Relevant part of preprocessed source attached.</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>