<div dir="ltr">On Sun, Sep 22, 2013 at 12:23 PM, Sid Manning <span dir="ltr"><<a href="mailto:sidneym@codeaurora.org" target="_blank">sidneym@codeaurora.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 09/20/2013 06:00 PM, Eli Friedman wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Fri, Sep 20, 2013 at 2:50 PM, Sid Manning <<a href="mailto:sidneym@codeaurora.org" target="_blank">sidneym@codeaurora.org</a><br></div><div class="im">
<mailto:<a href="mailto:sidneym@codeaurora.org" target="_blank">sidneym@codeaurora.org</a><u></u>>> wrote:<br>
<br>
<br>
    This example generates the following error:<br>
    .Ltmp3:<br>
    .Ltmp5:<br>
    .Ltmp13:<br>
             .word   (.Ltmp5-.Ltmp3)-.Ltmp13<br>
<br>
    ./llvm-mc ex.s -filetype=obj<br>
    LLVM ERROR: expected relocatable expression when using:<br>
<br>
<br>
Umm, isn't this equivalent to the following?  What do you expect LLVM to<br>
do with it?<br>
<br>
.Ltmp13:<br>
     .word -.Ltmp13<br>
</div></blockquote>
<br>
I removed the target specific assembly to produce a simple generic example.</blockquote><div><br></div><div>Then you must have reduced it too much; your example is simply invalid (although the compiler's error message isn't great).<br>
</div><div><br></div><div>-Eli<br></div></div></div></div>