Hello,<br><br>I'm looking at compiling some pieces of the standard library with llvm but I'm running into problems with some functions being renamed by dragonegg. For example, when I compile the acos implementation with plain gcc I get:<br>

<br><span style="font-family: courier new,monospace;">$ nm acos.o</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0000000000000000 r .LC1</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">0000000000000048 r .LC10</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0000000000000050 r .LC11</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">0000000000000058 r .LC12</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0000000000000060 r .LC13</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">0000000000000068 r .LC14</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0000000000000070 r .LC15</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">0000000000000008 r .LC2</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0000000000000010 r .LC3</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">0000000000000018 r .LC4</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0000000000000020 r .LC5</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">0000000000000028 r .LC6</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0000000000000030 r .LC7</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">0000000000000038 r .LC8</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0000000000000040 r .LC9</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">0000000000000000 T __GI_acos</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0000000000000000 T __ieee754_acos</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">                 U __ieee754_sqrt</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0000000000000000 T acos</span><br>

<br>but when I compile with dragonegg, I get:<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$ llvm-nm acos.bc.o </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">         T  __GI_acos</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">         T  acos</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">         T __ieee754_acos</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">         U __ieee754_sqrt</span><br><br>
Why does LLVM do this? I assume that it has something to do with the fact that LLVM treats the function "acos" as special and so doesn't want it to be redefined, is that correct? I've been running a post-processing pass that finds functions and function references with the <span style="font-family: courier new,monospace;">  <font face="arial,helvetica,sans-serif">character and removes it, but this kind of messes up my workflow. </font></span>Is there anyway to tell LLVM to not do this?<br>

<br>Thanks.<br>-- <br>gregory malecha<br><div><a href="http://www.people.fas.harvard.edu/%7Egmalecha/" target="_blank">http://www.people.fas.harvard.edu/~gmalecha/</a></div><br>