<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hey all,</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>I was wondering if clang/LLVM has support to compile glibc in its entirety? The only thing I could find of recent was this thread saying the only way it could really be done is to use the dragonegg plugin with gcc...
</p>
<p><a id="lnk260384" href="https://groups.google.com/forum/#!topic/llvm-dev/pmZYVNTrVYQ">https://groups.google.com/forum/#!topic/llvm-dev/pmZYVNTrVYQ</a></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="GO0BFSYOCC"><span id="t-t" class="GO0BFSYIEC"><em> [LLVMdev] clang/llvm with glibc</em></span><em>
</em></div>
<div class="GO0BFSYOCC">
<div class="GO0BFSYFEC GO0BFSYLRC" style=""><em>8 posts by 5 authors</em></div>
<em></em><span class="GO0BFSYNEC" style="">
<div id="options_menu" role="button" class="goog-button-base goog-inline-block goog-button" tabindex="0">
<img style="margin: 5px; width: 13px;" class="gwt-Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAABAUlEQVR42pVSywqCUBB1GfQB7YL+qYgWki/8ATcuXPkJ/kUboRZFq5YVlm3rEwQhMiik6HaOIFy0wg6Mlzl3zjh3ZhRFgq7rfdM0D4Zh3GEP2JU++KFShWVZHQRMXdeNkyQ5CQn0Pc+LIJwhrlcIVFVtQzAJw3AlfoD3TKxpWosljZBpLxqAcSh3TNG6WtI3MA5/2yr4XEoyCAIBv2bkS8A/U/QqiTzPa0L65CXRk6JcLiHLMuE4TiHgSV8G+BtFtTanaSp83y/Oj29CN1R0ZdewezHiB8WsoJ7/NSfCtu0uiCXngBKOHzYixv2itkrMwB3D5QaWsUscByziE7g5ZewbzQ7OUxr+cUAAAAAASUVORK5CYII="></div>
</span><em></em><span class="GO0BFSYPCC"></span><em></em></div>
<div class="GO0BFSYLHB GO0BFSYNHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div class="GO0BFSYLHB">
<div class="GO0BFSYKGB">
<div class="GO0BFSYCGB">
<div tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<table class="GO0BFSYDHB" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="GO0BFSYKFB" valign="top">
<div><img style="width: 34px; margin: 5px;" class="gwt-Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAnUlEQVR42u3UsQ2AIBAFUOemoKGESajYhA3oWABCfeabUKiFNijRX3xDzkt4ILLknGWGLHi01l4NIYQQQsirkFKKhBDEGLMFY9Qeh2BipdQuqD0OwS4cIaj9FzLNp5nmsPIe6am1SoxRvPfinBOt9RaMUcM79AyFpJTEWns6pMegB73DIFj1FaIHvcMgdxE934fw9yWEEEIIuQuZISuz4exV/fiHnwAAAABJRU5ErkJggg=="></div>
</td>
<td class="GO0BFSYGHB" valign="top" align="left"><em></em><span class="_username"><span style="color: rgb(34, 34, 34);" class="GO0BFSYDXB"><em>Dave Buehmann</em></span></span><em>
</em><span></span><em></em></td>
<td valign="top" align="right">
<div class="GO0BFSYPEB">
<div class="GO0BFSYOW jfk-button-standard GO0BFSYDX GO0BFSYDFB GO0BFSYFGB" role="button" tabindex="0">
<img style="margin: 5px; width: 21px;" class="gwt-Image GO0BFSYBX" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAdklEQVR42mNgGAVDHswnwCfLwP94+CSDBqgBCWh8sg1NgGruR+PD8HogLgBiBVINXI/DQHQ8nxjDYYoV0Pj48HsgNqCmS0k2GFeY7ofi+2ji94kNW1js9+OIfQGomvto6qmSTgWgQXae2jlKgJggIDeNjwIaAQBDo0wVdvRN2QAAAABJRU5ErkJggg=="><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"></span></div>
<span class="GO0BFSYDFB GO0BFSYAFB">
<div id="b_action_jV16d_sxw60J" class="GO0BFSYOW jfk-button-standard GO0BFSYH2 GO0BFSYFFB GO0BFSYGX GO0BFSYFX" role="button" tabindex="0">
<input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"><span></span></span><span class="GO0BFSYF2"><span role="menu" class="GO0BFSYG2"></span></span></div>
</span></div>
<div class="GO0BFSYGHB GO0BFSYIHB"><em></em><span title="Wednesday, June 5, 2013 2:34:41 PM UTC-4" class="GO0BFSYFHB GO0BFSYLRC"><em>6/5/13</em></span><em>
</em></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="GO0BFSYN2D">
<div class="GO0BFSYHHB" style="">
<div style=""><em></em><span class="GO0BFSYMFB"><em>Other recipients: </em></span><em></em><span class="GO0BFSYLFB"><em></em><span><em>llv...@cs.uiuc.edu</em></span><em>
</em></span><em></em></div>
</div>
<div class="GO0BFSYEHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<div style="overflow: auto">
<div dir="ltr">
<p><em>This question has been asked occasionally with no positive responses.</em></p>
<p><em>Has anybody had success compiling glib with clang/llvm? If so, can you share any details?</em><br>
</p>
<p><em>If not, are there any good libc replacements with more complete functionality than newlib?</em><br>
</p>
<p><em>Thanks, dave</em><br>
</p>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYMEB">
<div class="GO0BFSYLEB GO0BFSYBIB" style="">
<div>
<div style="display:inline-block;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYLHB GO0BFSYECC GO0BFSYNHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div class="GO0BFSYLHB">
<div class="GO0BFSYKGB">
<div class="GO0BFSYCGB">
<div tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<table class="GO0BFSYDHB" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="GO0BFSYKFB" valign="top">
<div><img style="width: 34px; margin: 5px;" class="gwt-Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAnUlEQVR42u3UsQ2AIBAFUOemoKGESajYhA3oWABCfeabUKiFNijRX3xDzkt4ILLknGWGLHi01l4NIYQQQsirkFKKhBDEGLMFY9Qeh2BipdQuqD0OwS4cIaj9FzLNp5nmsPIe6am1SoxRvPfinBOt9RaMUcM79AyFpJTEWns6pMegB73DIFj1FaIHvcMgdxE934fw9yWEEEIIuQuZISuz4exV/fiHnwAAAABJRU5ErkJggg=="></div>
</td>
<td class="GO0BFSYGHB" valign="top" align="left"><em></em><span class="_username"><span style="color: rgb(34, 34, 34);" class="GO0BFSYDXB"><em>JF Bastien</em></span></span><em>
</em><span></span><em></em></td>
<td valign="top" align="right">
<div class="GO0BFSYPEB">
<div class="GO0BFSYOW jfk-button-standard GO0BFSYDX GO0BFSYDFB GO0BFSYFGB" role="button" tabindex="0">
<img style="margin: 5px; width: 21px;" class="gwt-Image GO0BFSYBX" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAdklEQVR42mNgGAVDHswnwCfLwP94+CSDBqgBCWh8sg1NgGruR+PD8HogLgBiBVINXI/DQHQ8nxjDYYoV0Pj48HsgNqCmS0k2GFeY7ofi+2ji94kNW1js9+OIfQGomvto6qmSTgWgQXae2jlKgJggIDeNjwIaAQBDo0wVdvRN2QAAAABJRU5ErkJggg=="><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"></span></div>
<span class="GO0BFSYDFB GO0BFSYAFB">
<div id="b_action_RBBMcSEhpDEJ" class="GO0BFSYOW jfk-button-standard GO0BFSYH2 GO0BFSYFFB GO0BFSYGX GO0BFSYFX" role="button" tabindex="0">
<input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"><span></span></span><span class="GO0BFSYF2"><span role="menu" class="GO0BFSYG2"></span></span></div>
</span></div>
<div class="GO0BFSYGHB GO0BFSYIHB"><em></em><span title="Wednesday, June 5, 2013 3:05:08 PM UTC-4" class="GO0BFSYFHB GO0BFSYLRC"><em>6/5/13</em></span><em>
</em></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="GO0BFSYN2D">
<div class="GO0BFSYHHB" style="">
<div style=""><em></em><span class="GO0BFSYMFB"><em>Other recipients: </em></span><em></em><span class="GO0BFSYLFB"><em></em><span><em>db....@gmail.com, mcgr...@google.com, llv...@cs.uiuc.edu</em></span><em>
</em></span><em></em></div>
</div>
<div class="GO0BFSYEHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<div style="overflow: auto">
<p dir="ltr"><em>Roland says the main blocker for now is support for nested functions, he thinks the rest should be straightforward.
</em></p>
<p dir="ltr"><em>There was apparently a post to the glibc mailing list about this.
</em><br>
<em></em></p>
<div class="gmail_quote">
<div>
<div id="t_q_RBBMcSEhpDEJ1" class="GO0BFSYPIB"><em>- show quoted text -</em></div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div id="t_q_RBBMcSEhpDEJ2" class="GO0BFSYPIB"><em>- show quoted text -</em></div>
</div>
<em>______________________________</em><wbr><em>_________________</em><br>
<em>LLVM Developers mailing list</em><br>
<em></em><a target="_blank"><em>LLV...@cs.uiuc.edu</em></a><em> </em><a href="http://llvm.cs.uiuc.edu" target="_blank"><em>http://llvm.cs.uiuc.edu</em></a><br>
<em></em><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank"><em>http://lists.cs.uiuc.edu/</em><wbr><em>mailman/listinfo/llvmdev</em></a><br>
<em></em><br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYMEB">
<div class="GO0BFSYLEB GO0BFSYBIB" style="">
<div>
<div style="display:inline-block;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYLHB GO0BFSYECC GO0BFSYNHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div class="GO0BFSYLHB">
<div class="GO0BFSYKGB">
<div class="GO0BFSYCGB">
<div tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<table class="GO0BFSYDHB" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="GO0BFSYKFB" valign="top">
<div><img style="width: 34px; margin: 5px;" class="gwt-Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAnUlEQVR42u3UsQ2AIBAFUOemoKGESajYhA3oWABCfeabUKiFNijRX3xDzkt4ILLknGWGLHi01l4NIYQQQsirkFKKhBDEGLMFY9Qeh2BipdQuqD0OwS4cIaj9FzLNp5nmsPIe6am1SoxRvPfinBOt9RaMUcM79AyFpJTEWns6pMegB73DIFj1FaIHvcMgdxE934fw9yWEEEIIuQuZISuz4exV/fiHnwAAAABJRU5ErkJggg=="></div>
</td>
<td class="GO0BFSYGHB" valign="top" align="left"><em></em><span class="_username"><span style="color: rgb(34, 34, 34);" class="GO0BFSYDXB"><em>Peter Collingbourne</em></span></span><em>
</em><span></span><em></em></td>
<td valign="top" align="right">
<div class="GO0BFSYPEB">
<div class="GO0BFSYOW jfk-button-standard GO0BFSYDX GO0BFSYDFB GO0BFSYFGB" role="button" tabindex="0">
<img style="margin: 5px; width: 21px;" class="gwt-Image GO0BFSYBX" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAdklEQVR42mNgGAVDHswnwCfLwP94+CSDBqgBCWh8sg1NgGruR+PD8HogLgBiBVINXI/DQHQ8nxjDYYoV0Pj48HsgNqCmS0k2GFeY7ofi+2ji94kNW1js9+OIfQGomvto6qmSTgWgQXae2jlKgJggIDeNjwIaAQBDo0wVdvRN2QAAAABJRU5ErkJggg=="><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"></span></div>
<span class="GO0BFSYDFB GO0BFSYAFB">
<div id="b_action_X0Wz5BymXQgJ" class="GO0BFSYOW jfk-button-standard GO0BFSYH2 GO0BFSYFFB GO0BFSYGX GO0BFSYFX" role="button" tabindex="0">
<input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"><span></span></span><span class="GO0BFSYF2"><span role="menu" class="GO0BFSYG2"></span></span></div>
</span></div>
<div class="GO0BFSYGHB GO0BFSYIHB"><em></em><span title="Wednesday, June 5, 2013 4:42:02 PM UTC-4" class="GO0BFSYFHB GO0BFSYLRC"><em>6/5/13</em></span><em>
</em></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="GO0BFSYN2D">
<div class="GO0BFSYHHB" style="">
<div style=""><em></em><span class="GO0BFSYMFB"><em>Other recipients: </em></span><em></em><span class="GO0BFSYLFB"><em></em><span><em>db....@gmail.com, llv...@cs.uiuc.edu</em></span><em>
</em></span><em></em></div>
</div>
<div class="GO0BFSYEHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<div style="overflow: auto">
<div>
<div id="t_q_X0Wz5BymXQgJ1" class="GO0BFSYPIB"><em>- show quoted text -</em></div>
</div>
<em>It is (almost) possible to compile glibc using DragonEgg -- there </em><br>
<em>are only a handful of patches required (for LLVM and DragonEgg), </em><br>
<em>most of which are now up for review. </em><br>
<em></em><br>
<em>It builds, and most of glibc's test suite currently passes, except </em><br>
<em>for some tests that deal with floating point arithmetic, and some </em><br>
<em>tests which use very obscure GNU as features which I haven't seen </em><br>
<em>used outside the glibc test suite. </em><br>
<em></em><br>
<em>Hopefully within a month or so everything should be upstreamed, but </em><br>
<em>if you're itching for something that works now I can try to find some </em><br>
<em>time to send some WIP patches and instructions. </em><br>
<em></em><br>
<em>Thanks, </em><br>
<em>-- </em><br>
<em>Peter </em><br>
<div>
<div id="t_q_X0Wz5BymXQgJ2" class="GO0BFSYPIB"><em>- show quoted text -</em></div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYMEB">
<div class="GO0BFSYLEB GO0BFSYBIB" style="">
<div>
<div style="display:inline-block;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYLHB GO0BFSYECC GO0BFSYNHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div class="GO0BFSYLHB">
<div class="GO0BFSYKGB">
<div class="GO0BFSYCGB">
<div tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<table class="GO0BFSYDHB" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="GO0BFSYKFB" valign="top">
<div><img style="width: 34px; margin: 5px;" class="gwt-Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAnUlEQVR42u3UsQ2AIBAFUOemoKGESajYhA3oWABCfeabUKiFNijRX3xDzkt4ILLknGWGLHi01l4NIYQQQsirkFKKhBDEGLMFY9Qeh2BipdQuqD0OwS4cIaj9FzLNp5nmsPIe6am1SoxRvPfinBOt9RaMUcM79AyFpJTEWns6pMegB73DIFj1FaIHvcMgdxE934fw9yWEEEIIuQuZISuz4exV/fiHnwAAAABJRU5ErkJggg=="></div>
</td>
<td class="GO0BFSYGHB" valign="top" align="left"><em></em><span class="_username"><span style="color: rgb(34, 34, 34);" class="GO0BFSYDXB"><em>Reid Kleckner</em></span></span><em>
</em><span></span><em></em></td>
<td valign="top" align="right">
<div class="GO0BFSYPEB">
<div class="GO0BFSYOW jfk-button-standard GO0BFSYDX GO0BFSYDFB GO0BFSYFGB" role="button" tabindex="0">
<img style="margin: 5px; width: 21px;" class="gwt-Image GO0BFSYBX" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAdklEQVR42mNgGAVDHswnwCfLwP94+CSDBqgBCWh8sg1NgGruR+PD8HogLgBiBVINXI/DQHQ8nxjDYYoV0Pj48HsgNqCmS0k2GFeY7ofi+2ji94kNW1js9+OIfQGomvto6qmSTgWgQXae2jlKgJggIDeNjwIaAQBDo0wVdvRN2QAAAABJRU5ErkJggg=="><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"></span></div>
<span class="GO0BFSYDFB GO0BFSYAFB">
<div id="b_action_hhV9oguvSDkJ" class="GO0BFSYOW jfk-button-standard GO0BFSYH2 GO0BFSYFFB GO0BFSYGX GO0BFSYFX" role="button" tabindex="0">
<input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"><span></span></span><span class="GO0BFSYF2"><span role="menu" class="GO0BFSYG2"></span></span></div>
</span></div>
<div class="GO0BFSYGHB GO0BFSYIHB"><em></em><span title="Wednesday, June 5, 2013 3:19:42 PM UTC-4" class="GO0BFSYFHB GO0BFSYLRC"><em>6/5/13</em></span><em>
</em></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="GO0BFSYN2D">
<div class="GO0BFSYHHB" style="">
<div style=""><em></em><span class="GO0BFSYMFB"><em>Other recipients: </em></span><em></em><span class="GO0BFSYLFB"><em></em><span><em>j...@google.com, llv...@cs.uiuc.edu, mcgr...@google.com</em></span><em>
</em></span><em></em></div>
</div>
<div class="GO0BFSYEHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<div style="overflow: auto">
<div dir="ltr"><em>Here's a clang bug I filed long ago for it that was closed wontfix:</em>
<div><a href="http://llvm.org/bugs/show_bug.cgi?id=9206" target="_blank"><em>http://llvm.org/bugs/show_bug.</em><wbr><em>cgi?id=9206</em></a></div>
</div>
<div>
<div id="t_q_hhV9oguvSDkJ1" class="GO0BFSYPIB"><em>- show quoted text -</em></div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYMEB">
<div class="GO0BFSYLEB GO0BFSYBIB" style="">
<div>
<div style="display:inline-block;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYLHB GO0BFSYECC GO0BFSYNHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div class="GO0BFSYLHB">
<div class="GO0BFSYKGB">
<div class="GO0BFSYCGB">
<div tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<table class="GO0BFSYDHB" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="GO0BFSYKFB" valign="top">
<div><img style="width: 34px; margin: 5px;" class="gwt-Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAnUlEQVR42u3UsQ2AIBAFUOemoKGESajYhA3oWABCfeabUKiFNijRX3xDzkt4ILLknGWGLHi01l4NIYQQQsirkFKKhBDEGLMFY9Qeh2BipdQuqD0OwS4cIaj9FzLNp5nmsPIe6am1SoxRvPfinBOt9RaMUcM79AyFpJTEWns6pMegB73DIFj1FaIHvcMgdxE934fw9yWEEEIIuQuZISuz4exV/fiHnwAAAABJRU5ErkJggg=="></div>
</td>
<td class="GO0BFSYGHB" valign="top" align="left"><em></em><span class="_username"><span style="color: rgb(34, 34, 34);" class="GO0BFSYDXB"><em>Dave Buehmann</em></span></span><em>
</em><span></span><em></em></td>
<td valign="top" align="right">
<div class="GO0BFSYPEB">
<div class="GO0BFSYOW jfk-button-standard GO0BFSYDX GO0BFSYDFB GO0BFSYFGB" role="button" tabindex="0">
<img style="margin: 5px; width: 21px;" class="gwt-Image GO0BFSYBX" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAdklEQVR42mNgGAVDHswnwCfLwP94+CSDBqgBCWh8sg1NgGruR+PD8HogLgBiBVINXI/DQHQ8nxjDYYoV0Pj48HsgNqCmS0k2GFeY7ofi+2ji94kNW1js9+OIfQGomvto6qmSTgWgQXae2jlKgJggIDeNjwIaAQBDo0wVdvRN2QAAAABJRU5ErkJggg=="><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"></span></div>
<span class="GO0BFSYDFB GO0BFSYAFB">
<div id="b_action_H1jpOqOW0M4J" class="GO0BFSYOW jfk-button-standard GO0BFSYH2 GO0BFSYFFB GO0BFSYGX GO0BFSYFX" role="button" tabindex="0">
<input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"><span></span></span><span class="GO0BFSYF2"><span role="menu" class="GO0BFSYG2"></span></span></div>
</span></div>
<div class="GO0BFSYGHB GO0BFSYIHB"><em></em><span title="Thursday, June 6, 2013 11:34:57 AM UTC-4" class="GO0BFSYFHB GO0BFSYLRC"><em>6/6/13</em></span><em>
</em></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="GO0BFSYN2D">
<div class="GO0BFSYHHB" style="">
<div style=""><em></em><span class="GO0BFSYMFB"><em>Other recipients: </em></span><em></em><span class="GO0BFSYLFB"><em></em><span><em>llv...@cs.uiuc.edu</em></span><em>
</em></span><em></em></div>
</div>
<div class="GO0BFSYEHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<div style="overflow: auto"><em>Thanks Peter, </em><br>
<em></em><br>
<em>I'll try that path and follow up with you for the patches when I get to that </em>
<br>
<em>point </em><br>
<em></em><br>
<em>Best, dave </em><br>
<em></em><br>
<em></em><br>
<em></em><br>
<em>-- </em><br>
<em>View this message in context: </em><a href="http://llvm.1065342.n5.nabble.com/clang-llvm-with-glibc-tp58309p58336.html" target="_blank"><em>http://llvm.1065342.n5.nabble.</em><wbr><em>com/clang-llvm-with-glibc-</em><wbr><em>tp58309p58336.html</em></a><em>
</em><br>
<em>Sent from the LLVM - Dev mailing list archive at Nabble.com. </em><br>
<div>
<div id="t_q_H1jpOqOW0M4J1" class="GO0BFSYPIB"><em>- show quoted text -</em></div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYMEB">
<div class="GO0BFSYLEB GO0BFSYBIB" style="">
<div>
<div style="display:inline-block;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYLHB GO0BFSYECC GO0BFSYNHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div class="GO0BFSYLHB">
<div class="GO0BFSYKGB">
<div class="GO0BFSYCGB">
<div tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<table class="GO0BFSYDHB" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="GO0BFSYKFB" valign="top">
<div><img style="width: 34px; margin: 5px;" class="gwt-Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAnUlEQVR42u3UsQ2AIBAFUOemoKGESajYhA3oWABCfeabUKiFNijRX3xDzkt4ILLknGWGLHi01l4NIYQQQsirkFKKhBDEGLMFY9Qeh2BipdQuqD0OwS4cIaj9FzLNp5nmsPIe6am1SoxRvPfinBOt9RaMUcM79AyFpJTEWns6pMegB73DIFj1FaIHvcMgdxE934fw9yWEEEIIuQuZISuz4exV/fiHnwAAAABJRU5ErkJggg=="></div>
</td>
<td class="GO0BFSYGHB" valign="top" align="left"><em></em><span class="_username"><span style="color: rgb(34, 34, 34);" class="GO0BFSYDXB"><em>Rafael Espíndola</em></span></span><em>
</em><span></span><em></em></td>
<td valign="top" align="right">
<div class="GO0BFSYPEB">
<div class="GO0BFSYOW jfk-button-standard GO0BFSYDX GO0BFSYDFB GO0BFSYFGB" role="button" tabindex="0">
<img style="margin: 5px; width: 21px;" class="gwt-Image GO0BFSYBX" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAdklEQVR42mNgGAVDHswnwCfLwP94+CSDBqgBCWh8sg1NgGruR+PD8HogLgBiBVINXI/DQHQ8nxjDYYoV0Pj48HsgNqCmS0k2GFeY7ofi+2ji94kNW1js9+OIfQGomvto6qmSTgWgQXae2jlKgJggIDeNjwIaAQBDo0wVdvRN2QAAAABJRU5ErkJggg=="><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"></span></div>
<span class="GO0BFSYDFB GO0BFSYAFB">
<div id="b_action_Arz-y9bF9fAJ" class="GO0BFSYOW jfk-button-standard GO0BFSYH2 GO0BFSYFFB GO0BFSYGX GO0BFSYFX" role="button" tabindex="0">
<input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"><span></span></span><span class="GO0BFSYF2"><span role="menu" class="GO0BFSYG2"></span></span></div>
</span></div>
<div class="GO0BFSYGHB GO0BFSYIHB"><em></em><span title="Friday, June 7, 2013 11:48:03 AM UTC-4" class="GO0BFSYFHB GO0BFSYLRC"><em>6/7/13</em></span><em>
</em></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="GO0BFSYN2D">
<div class="GO0BFSYHHB" style="">
<div style=""><em></em><span class="GO0BFSYMFB"><em>Other recipients: </em></span><em></em><span class="GO0BFSYLFB"><em></em><span><em>pe...@pcc.me.uk, llv...@cs.uiuc.edu</em></span><em>
</em></span><em></em></div>
</div>
<div class="GO0BFSYEHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<div style="overflow: auto">
<div class="GO0BFSYAJB"><em>> It is (almost) possible to compile glibc using DragonEgg -- there
</em><br>
<em>> are only a handful of patches required (for LLVM and DragonEgg), </em><br>
<em>> most of which are now up for review. </em><br>
<em>> </em><br>
<em>> It builds, and most of glibc's test suite currently passes, except </em><br>
<em>> for some tests that deal with floating point arithmetic, and some </em><br>
<em>> tests which use very obscure GNU as features which I haven't seen </em><br>
<em>> used outside the glibc test suite. </em><br>
<em>> </em><br>
<em>> Hopefully within a month or so everything should be upstreamed, but </em><br>
<em>> if you're itching for something that works now I can try to find some </em>
<br>
<em>> time to send some WIP patches and instructions. </em><br>
<em></em><br>
</div>
<em>This is amazing! </em><br>
<em></em><br>
<em>What are you guys doing about -fno-toplevel-reorder? </em><br>
<em></em><br>
<em>Cheers, </em><br>
<em>Rafael </em><br>
<div>
<div id="t_q_Arz-y9bF9fAJ1" class="GO0BFSYPIB"><em>- show quoted text -</em></div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYMEB">
<div class="GO0BFSYLEB GO0BFSYBIB" style="">
<div>
<div style="display:inline-block;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYLHB GO0BFSYECC GO0BFSYNHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div class="GO0BFSYLHB">
<div class="GO0BFSYKGB">
<div class="GO0BFSYCGB">
<div tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<table class="GO0BFSYDHB" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="GO0BFSYKFB" valign="top">
<div><img style="width: 34px; margin: 5px;" class="gwt-Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAnUlEQVR42u3UsQ2AIBAFUOemoKGESajYhA3oWABCfeabUKiFNijRX3xDzkt4ILLknGWGLHi01l4NIYQQQsirkFKKhBDEGLMFY9Qeh2BipdQuqD0OwS4cIaj9FzLNp5nmsPIe6am1SoxRvPfinBOt9RaMUcM79AyFpJTEWns6pMegB73DIFj1FaIHvcMgdxE934fw9yWEEEIIuQuZISuz4exV/fiHnwAAAABJRU5ErkJggg=="></div>
</td>
<td class="GO0BFSYGHB" valign="top" align="left"><em></em><span class="_username"><span style="color: rgb(34, 34, 34);" class="GO0BFSYDXB"><em>Peter Collingbourne</em></span></span><em>
</em><span></span><em></em></td>
<td valign="top" align="right">
<div class="GO0BFSYPEB">
<div class="GO0BFSYOW jfk-button-standard GO0BFSYDX GO0BFSYDFB GO0BFSYFGB" role="button" tabindex="0">
<img style="margin: 5px; width: 21px;" class="gwt-Image GO0BFSYBX" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAdklEQVR42mNgGAVDHswnwCfLwP94+CSDBqgBCWh8sg1NgGruR+PD8HogLgBiBVINXI/DQHQ8nxjDYYoV0Pj48HsgNqCmS0k2GFeY7ofi+2ji94kNW1js9+OIfQGomvto6qmSTgWgQXae2jlKgJggIDeNjwIaAQBDo0wVdvRN2QAAAABJRU5ErkJggg=="><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"></span></div>
<span class="GO0BFSYDFB GO0BFSYAFB">
<div id="b_action_FQ8O5xwXVxgJ" class="GO0BFSYOW jfk-button-standard GO0BFSYH2 GO0BFSYFFB GO0BFSYGX GO0BFSYFX" role="button" tabindex="0">
<input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"><span></span></span><span class="GO0BFSYF2"><span role="menu" class="GO0BFSYG2"></span></span></div>
</span></div>
<div class="GO0BFSYGHB GO0BFSYIHB"><em></em><span title="Friday, June 7, 2013 1:33:39 PM UTC-4" class="GO0BFSYFHB GO0BFSYLRC"><em>6/7/13</em></span><em>
</em></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="GO0BFSYN2D">
<div class="GO0BFSYHHB" style="">
<div style=""><em></em><span class="GO0BFSYMFB"><em>Other recipients: </em></span><em></em><span class="GO0BFSYLFB"><em></em><span><em>rafael.e...@gmail.com, llv...@cs.uiuc.edu</em></span><em>
</em></span><em></em></div>
</div>
<div class="GO0BFSYEHB" tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<div style="overflow: auto">
<div class="GO0BFSYAJB"><em>On Fri, Jun 07, 2013 at 11:48:03AM -0400, Rafael Espíndola wrote:
</em><br>
<em>> > It is (almost) possible to compile glibc using DragonEgg -- there </em><br>
<em>> > are only a handful of patches required (for LLVM and DragonEgg), </em><br>
<em>> > most of which are now up for review. </em><br>
<em>> > </em><br>
<em>> > It builds, and most of glibc's test suite currently passes, except </em><br>
<em>> > for some tests that deal with floating point arithmetic, and some </em><br>
<em>> > tests which use very obscure GNU as features which I haven't seen </em><br>
<em>> > used outside the glibc test suite. </em><br>
<em>> > </em><br>
<em>> > Hopefully within a month or so everything should be upstreamed, but </em>
<br>
<em>> > if you're itching for something that works now I can try to find some </em>
<br>
<em>> > time to send some WIP patches and instructions. </em><br>
<em>> </em><br>
<em>> This is amazing! </em><br>
<em>> </em><br>
<em>> What are you guys doing about -fno-toplevel-reorder? </em><br>
<em></em><br>
</div>
<em>I haven't done anything about this flag, to be honest. From looking </em><br>
<em>at glibc's git HEAD it seems to currently be only used by two files </em><br>
<em>-- siglist.c and errlist.c -- and maybe I'm missing something but I </em><br>
<em>can't see any reason why either of these files now need it (in the </em><br>
<em>past these files seem to have contained some assembly but now </em><br>
<em>only contain straight C declarations). It also seems to have been used </em>
<br>
<em>in the past by initfini.c but that file is now gone from glibc git. </em><br>
<em></em><br>
<em>Thanks, </em><br>
<em>-- </em><br>
<em>Peter </em><br>
<div>
<div id="t_q_FQ8O5xwXVxgJ1" class="GO0BFSYPIB"><em>- show quoted text -</em></div>
</div>
</div>
</div>
</div>
</div>
<div class="GO0BFSYMEB">
<div class="GO0BFSYLEB GO0BFSYBIB" style="">
<div>
<div style="display:inline-block;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div>
<table class="GO0BFSYDHB" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="GO0BFSYKFB" valign="top">
<div><img style="width: 34px; margin: 5px;" class="gwt-Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAnUlEQVR42u3UsQ2AIBAFUOemoKGESajYhA3oWABCfeabUKiFNijRX3xDzkt4ILLknGWGLHi01l4NIYQQQsirkFKKhBDEGLMFY9Qeh2BipdQuqD0OwS4cIaj9FzLNp5nmsPIe6am1SoxRvPfinBOt9RaMUcM79AyFpJTEWns6pMegB73DIFj1FaIHvcMgdxE934fw9yWEEEIIuQuZISuz4exV/fiHnwAAAABJRU5ErkJggg=="></div>
</td>
<td class="GO0BFSYGHB" valign="top" align="left"><em></em><span class="_username"><span style="color: rgb(34, 34, 34);" class="GO0BFSYDXB"><em>Rafael Espíndola</em></span></span><em>
</em><span></span><em></em></td>
<td valign="top" align="right">
<div class="GO0BFSYPEB">
<div class="GO0BFSYOW jfk-button-standard GO0BFSYDX GO0BFSYDFB GO0BFSYFGB" role="button" tabindex="0">
<img style="margin: 5px; width: 21px;" class="gwt-Image GO0BFSYBX" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAdklEQVR42mNgGAVDHswnwCfLwP94+CSDBqgBCWh8sg1NgGruR+PD8HogLgBiBVINXI/DQHQ8nxjDYYoV0Pj48HsgNqCmS0k2GFeY7ofi+2ji94kNW1js9+OIfQGomvto6qmSTgWgQXae2jlKgJggIDeNjwIaAQBDo0wVdvRN2QAAAABJRU5ErkJggg=="><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"></span></div>
<span class="GO0BFSYDFB GO0BFSYAFB">
<div id="b_action_ULaVzztqsWYJ" class="GO0BFSYOW jfk-button-standard GO0BFSYH2 GO0BFSYFFB GO0BFSYGX GO0BFSYFX" role="button" tabindex="0">
<input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text"><span class="GO0BFSYCX"><span></span></span><span class="GO0BFSYF2"><span role="menu" class="GO0BFSYG2"></span></span></div>
</span></div>
<div class="GO0BFSYGHB GO0BFSYIHB"><em></em><span title="Friday, June 7, 2013 1:49:12 PM UTC-4" class="GO0BFSYFHB GO0BFSYLRC"><em>6/7/13</em></span><em>
</em></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="GO0BFSYHHB" style="">
<div style=""><em></em><span class="GO0BFSYMFB"><em>Other recipients: </em></span><em></em><span class="GO0BFSYLFB"><em></em><span><em>pe...@pcc.me.uk, llv...@cs.uiuc.edu</em></span><em>
</em></span><em></em></div>
</div>
<em></em><input style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;" role="presentation" tabindex="-1" type="text">
<div class="GO0BFSYAJB"><em>>> What are you guys doing about -fno-toplevel-reorder?
</em><br>
<em>> </em><br>
<em>> I haven't done anything about this flag, to be honest. From looking </em><br>
<em>> at glibc's git HEAD it seems to currently be only used by two files </em><br>
<em>> -- siglist.c and errlist.c -- and maybe I'm missing something but I </em><br>
<em>> can't see any reason why either of these files now need it (in the </em><br>
<em>> past these files seem to have contained some assembly but now </em><br>
<em>> only contain straight C declarations). It also seems to have been used </em>
<br>
<em>> in the past by initfini.c but that file is now gone from glibc git. </em><br>
<em></em><br>
</div>
<em>I went looking in glibc's git and found </em><br>
<em>3add8e1353d62d77fdd9b4ca363cdf</em>
<div style="overflow: auto"><wbr><em>e7006b0efb adding support for crti and </em>
<br>
<em>crtn written is assembly, which eventually replaced the old initfini.c </em><br>
<em>hack. </em><br>
<em></em><br>
<em>Congratulations to all those involved, this a much better state than I </em><br>
<em>would have dreamed possible some years ago. </em><br>
<em></em><br>
<em>Cheers, </em><br>
<em>Rafael </em><br>
<div>
<div id="t_q_ULaVzztqsWYJ1" class="GO0BFSYPIB"><em>- show quoted text -</em></div>
</div>
</div>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Is there any way to compile glibc only using clang as I have to be able to pass clang specific parameters for a pass to run on each file. </p>
<p><br>
</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Josh<br>
</p>
<div style="font-size:8pt; font-family: 'Calibri',sans-serif;"><br>
<br>
<br>
<hr>
This message and all attachments are PRIVATE, and contain information that is PROPRIETARY to Intelligent Automation, Inc. You are not authorized to transmit or otherwise disclose this message or any attachments to any third party whatsoever without the express
written consent of Intelligent Automation, Inc. If you received this message in error or you are not willing to view this message or any attachments on a confidential basis, please immediately delete this email and any attachments and notify Intelligent Automation,
Inc. </div>
</body>
</html>