<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New; color: #683821">Thanks a lot. This file cannot be compiled on Leopard/PPC. May be I'm doing something wrong, but:</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New; color: #683821">
<br class="webkit-block-placeholder"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New; color: #683821"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"><span style="color: #760f50">static</span> <span style="color: #760f50">void</span> *fpu_fpe_enable(<span style="color: #760f50">void</span> *arg)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New">{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"> thread_t t = *(thread_t*)arg;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"> <span style="color: #760f50">struct</span> ppc_thread_state state;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"> <span style="color: #760f50">unsigned</span> <span style="color: #760f50">int</span> state_size = PPC_THREAD_STATE_COUNT;</p><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Lucida Grande">
error: 'struct __darwin_mcontext' has no member named 'ss'</p></div>
</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New; color: #683821"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New; color: #683821">...</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New; color: #683821">
<br class="webkit-block-placeholder"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New; color: #683821">#elif defined(__i386__)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"> mcontext_t mc = uc->uc_mcontext;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"> <span style="color: #760f50">struct</span> __darwin_i386_float_state *fpstate = &mc->__fs;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"> fpstate->__fpu_mxcsr = <span style="color: #0000ff">0x1F80</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"> *(<span style="color: #760f50">unsigned</span> <span style="color: #760f50">short</span> *)&fpstate->__fpu_fsw &= ~<span style="color: #0000ff">0xFF</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New; color: #683821">#elif defined(__ppc__)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"> mcontext_t mc = uc->uc_mcontext;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"> mc->ss.srr0 += <span style="color: #0000ff">4</span>;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Lucida Grande">
error: 'struct __darwin_mcontext' has no member named 'ss'</p></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New"> mc->fs.fpscr = <span style="color: #0000ff">0x80</span>|<span style="color: #0000ff">0x40</span>|<span style="color: #0000ff">0x10</span>;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Lucida Grande">error: 'struct __darwin_mcontext' has no member named 'ss'</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Lucida Grande"><br class="webkit-block-placeholder">
</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Lucida Grande"><br class="webkit-block-placeholder"></p></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Courier New; color: #683821">#endif</p><br><div><span class="gmail_quote">2008/2/28, Mikael Pettersson <<a href="mailto:mikpe@it.uu.se">mikpe@it.uu.se</a>>:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
Vlad Balin writes:<br> > Hello,<br> > I've got a bit different problem with last OTP release on MacOS 10.5 Leopard<br> > (iMac G5, ppc, 32-bit mode).<br> ><br> > I can't build HiPE for some reason. Configure script says that there<br>
> floating point exceptions are unreliable and this is the reason to disable<br> > HiPE on ppc. However, I've got no problems with HiPE on MacOS 10.4 on the<br> > same machine. Is there any specific reasons that HiPE is disabled, or this<br>
> is bug?<br> <br> <br>The configure script reporting unreliable floating-point exceptions<br> most probably means that the FPE test program couldn't be compiled<br> on OSX 10.5, which in turn is probably because Apple has seen fit to<br>
make incompatible changes between 10.4 and 10.5.<br> <br> Someone with access to 10.5 will need to update the FPE test program<br> embedded in erts/configure.in to work also on 10.5.<br> </blockquote></div><br>