<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 6 June 2015 at 19:12, Dan Olson via D.gnu <span dir="ltr"><<a href="mailto:d.gnu@puremagic.com" target="_blank">d.gnu@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">"Iain Buclaw via D.gnu" <<a href="mailto:d.gnu@puremagic.com">d.gnu@puremagic.com</a>> writes:<br>
<br>
</span>> On 6 June 2015 at 18:54, Dan Olson via D.gnu <<a href="mailto:d.gnu@puremagic.com">d.gnu@puremagic.com</a>><br>
<div><div class="h5">> wrote:<br>
><br>
> "Iain Buclaw via D.gnu" <<a href="mailto:d.gnu@puremagic.com">d.gnu@puremagic.com</a>> writes:<br>
><br>
> > Alas, after looking at backend, it turns out that the answer is<br>
> no.<br>
> ><br>
> > In the glue sources (d-decls.cc), replace<br>
> 'set_user_assembler_name'<br>
> > with 'SET_DECL_ASSEMBLER_NAME' and rebuild the module without<br>
> your<br>
> > workaround.<br>
><br>
> Ok, that works for data. Functions (stuff in text section) still<br>
> missing _. Is that handled by same function?<br>
> (VarDeclaration::toSymbol)<br>
><br>
><br>
</div></div><span class="">> There are two uses of set_user_assembler_name in d-decls.cc. One for<br>
> variables, the other for functions. ;-)<br>
<br>
</span>Ooops. Yeah that did it. I'll try later this weekend to get working<br>
with emutls and make pull requests for these.<br>
<br>
Thanks for all the real-time help.<br>
<br>
P.S. I am building against gcc-6-20150503 fine. I tried gcc-6-20150531<br>
yesterday and get ICE right away when compiling object_.d or<br>
object.di, don't remember which.<br>
<span class=""><font color="#888888">--<br>
Dan<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">I've only tested up to gcc-6-20150412, so YMMV on later snapshots.<br><br></div></div>