<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 4:40 PM, Duncan P. N. Exon Smith <span dir="ltr"><<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb adM"><div class="">On Mar 17, 2014, at 3:53 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:<br>

<br>
><br>
> On Mon, Mar 17, 2014 at 3:28 PM, Duncan P. N. Exon Smith <<a href="mailto:dexonsmith@apple.com">dexonsmith@apple.com</a>> wrote:<br>
> I see<br>
><br>
> #include <stdio.h><br>
> #include <stdlib.h><br>
><br>
> at the top of the file.  Also, it compiles without warnings for me (and it works for me).<br>
><br>
> Maybe fputc isn’t portable?  r204084 switches to putc.  Maybe it’s more portable?<br>
><br>
> Why would it be more portable? This function was in C89, it has existed for approximately ever. The 'putc' function seems just a confusing and broken alternative. I see no good reason to ever use it...<br>
<br>
<br>
</div></div>Reverted everything in r204088, because as Chandler suggested putc is strictly worse.<br>
<br>
Also, tracked down the real problem:  we need have local headers for functions in compiler-rt, and there aren’t any stubs for fputc.  Maybe it worked  locally because I wasn’t bootstrapping?</blockquote></div><br>Ah, that makes sense out of everything.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I'm not at all familiar with how the stub headers work... =/ Maybe someone else knows. Sorry I can't actually help with the fix here.</div></div>