<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>
Raymond Toy pushed to branch rtoy-setexception-inexact
at <a href="https://gitlab.common-lisp.net/cmucl/cmucl">cmucl / cmucl</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/0fc0061b5302f516f051a599685b8be575535643">0fc0061b</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-12-27T10:16:45Z</i>
</div>
<pre class='commit-message'>Disable FP traps when printing arithmetic-error messages

Printing of FP numbers can signal some traps like overflow, underflow,
inexact, or denormalized-operand, so we need to disable these traps
when printing out the error message for arithmetic errors.</pre>
</li>
<li>
<strong><a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/62acaf64300552a1f74237f57ee0b0b9985f76ad">62acaf64</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-12-27T10:36:59Z</i>
</div>
<pre class='commit-message'>Merge branch 'master' into rtoy-setexception-inexact</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
src/code/error.lisp
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/compare/55b541e5fdac9794eae148597397bda915f96722...62acaf64300552a1f74237f57ee0b0b9985f76ad#diff-0'>
<strong>
src/code/error.lisp
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/code/error.lisp
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/code/error.lisp
</span><span style="color: #aaaaaa">@@ -1138,9 +1138,14 @@
</span>        (format stream (intl:gettext "Arithmetic error ~S signalled.")
                     (type-of condition))
             (when (arithmetic-error-operation condition)
<span style="color: #000000;background-color: #ffdddd">-               (format stream (intl:gettext "~%Operation was ~S, operands ~S.")
-                      (arithmetic-error-operation condition)
-                      (arithmetic-error-operands condition))))))
</span><span style="color: #000000;background-color: #ddffdd">+          ;; Printing the operands can signal these FP traps, so
+              ;; disable them while we're printing out the error
+              ;; message.
+              (with-float-traps-masked (:overflow :underflow :inexact
+                                        #+x86 :denormalized-operand)
+                (format stream (intl:gettext "~%Operation was ~S, operands ~S.")
+                        (arithmetic-error-operation condition)
+                        (arithmetic-error-operands condition)))))))
</span> 
 (define-condition division-by-zero         (arithmetic-error) ())
 (define-condition floating-point-overflow  (arithmetic-error) ())
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/compare/55b541e5fdac9794eae148597397bda915f96722...62acaf64300552a1f74237f57ee0b0b9985f76ad">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.common-lisp.net.
If you'd like to receive fewer emails, you can adjust your notification settings.

</p>
</div>
</body>
</html>