It works on Windows.<br><br>
<div class="gmail_quote">On Thu, Nov 19, 2009 at 11:26 AM, Ken Dyck <span dir="ltr"><<a href="mailto:Ken.Dyck@onsemi.com">Ken.Dyck@onsemi.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">In October (in r84160) the #include<stdint.h> in<br>test/CodeGen/const-init.c was replaced with an explicit definition of<br>
intptr_t. From what I gather, this was done to get the test to succeed<br>on Windows, where a host stdint.h is not implemented and clang, in<br>hosted mode, blindly attempts to include one anyways.<br><br>Explicitly defining intptr_t in the file has the problem of relying on<br>
the built-in macro, __INTPTR_TYPE__, which I would consider an<br>implementation detail of stdint.h, one that I'd like to remove (but I'll<br>save that discussion for another thread).<br><br>I'd like to propose an alternate fix. See the attached patch. It runs<br>
the test in freestanding mode, forcing the inclusion of clang's stdint.h<br>instead looking for a hosted one. And, more importantly, it doesn't rely<br>on any built-in macros.<br><br>Thoughts?<br><br>-Ken<br><br>_____________________________<br>
Ken Dyck<br>Senior Member of Technical Staff<br>Software Tools Development<br>Medical Division<br>ON Semiconductor<br><font color="#888888"><a href="mailto:ken.dyck@onsemi.com">ken.dyck@onsemi.com</a><br>+1 519 884 9696 ext 2277 | office<br>
+1 519 884 0228 | fax<br><a href="http://onsemi.com/" target="_blank">http://onsemi.com</a><br>_____________________________<br></font><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><br clear="all"><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br>
<br>