[gcc r12-5705] libphobos: Add missing ControlState variable for AArch64

Iain Buclaw ibuclaw@gcc.gnu.org
Thu Dec 2 00:47:46 GMT 2021


https://gcc.gnu.org/g:1c5317d6214baec897120320423e6ad9f4980fdf

commit r12-5705-g1c5317d6214baec897120320423e6ad9f4980fdf
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Thu Dec 2 01:42:07 2021 +0100

    libphobos: Add missing ControlState variable for AArch64
    
    Fixes a typo that occurred during the splitting of the std.math module
    into a package.
    
    libphobos/ChangeLog:
    
            * src/std/math/hardware.d (FloatingPointControl.getControlState): Add
            missing ControlState variable for AArch64.

Diff:
---
 libphobos/src/std/math/hardware.d | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libphobos/src/std/math/hardware.d b/libphobos/src/std/math/hardware.d
index 90bc96df148..b768969d4cf 100644
--- a/libphobos/src/std/math/hardware.d
+++ b/libphobos/src/std/math/hardware.d
@@ -912,6 +912,7 @@ private:
             }
             else version (AArch64)
             {
+                ControlState cont;
                 asm pure nothrow @nogc
                 {
                     "mrs %0, FPCR;" : "=r" (cont);


More information about the Gcc-cvs mailing list