<br><br><div class="gmail_quote">On Fri Nov 14 2014 at 3:23:37 PM Duncan P. N. Exon Smith <<a href="mailto:dexonsmith@apple.com">dexonsmith@apple.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On 2014-Nov-14, at 15:07, Eric Christopher <<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>> wrote:<br>
><br>
><br>
> > d) linkonce_odr functions with different attributes<br>
><br>
> Doesn't this just get handled by lib/Linker? I figure we keep the<br>
> attributes of the version of the function that "wins".<br>
><br>
><br>
> Right. Which one wins? You'll get inconsistent results depending on ordering. Of course, you'd get that without linking them, but we should do some sort of checking ideally.<br>
<br>
You mean some lib/Linker tests, to make sure that the version of the<br>
function that wins has its own attributes attached, instead of those<br>
of one of the losing functions? Yup, makes sense.</blockquote><div><br></div><div>Or perhaps a warning on "you said these two things were identical... they're not" with some calls into the backend.</div><div><br></div><div>-eric </div></div>