<div dir="ltr">Grepping the source code tells me that selectany is only implemented as microsoft extension. Test files use it in combination with __declspec and they enable this functionality with -fsm-compatibility. Note that I have no idea what this attribute actually does, I just did a search for you :)</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 2, 2014 at 2:31 PM, Talin <span dir="ltr"><<a href="mailto:viridia@gmail.com" target="_blank">viridia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I'm working with a code generator that produces C code and I need linkonce to eliminate duplicate definitions - but the clang compiler complains that the 'selectany' attribute is not recognized (even though I see looking through the clang source code that there's code to handle it.) So I'm wondering why the attribute isn't recognized, I'm guessing it could be any number of things (platform [OS X], source language (.c), and so on...)<span class="HOEnZb"><font color="#888888"><br clear="all">
<div><br></div>-- <br>-- Talin
</font></span></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>