aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--sysdeps/x86_64/fpu/fraiseexcpt.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 157f136e48..570912f01b 100644
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,7 @@ The following bugs are resolved with this release:
[29953] x86: Check minimum/maximum of non_temporal_threshold
[30053] time: strftime %s returns -1 after 2038 on 32 bits systems
[30151] gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling
+ [30305] x86_64: Fix asm constraints in feraiseexcept
Version 2.35
diff --git a/sysdeps/x86_64/fpu/fraiseexcpt.c b/sysdeps/x86_64/fpu/fraiseexcpt.c
index 864f4777a2..23446ff4ac 100644
--- a/sysdeps/x86_64/fpu/fraiseexcpt.c
+++ b/sysdeps/x86_64/fpu/fraiseexcpt.c
@@ -33,7 +33,7 @@ __feraiseexcept (int excepts)
/* One example of an invalid operation is 0.0 / 0.0. */
float f = 0.0;
- __asm__ __volatile__ ("divss %0, %0 " : : "x" (f));
+ __asm__ __volatile__ ("divss %0, %0 " : "+x" (f));
(void) &f;
}
@@ -43,7 +43,7 @@ __feraiseexcept (int excepts)
float f = 1.0;
float g = 0.0;
- __asm__ __volatile__ ("divss %1, %0" : : "x" (f), "x" (g));
+ __asm__ __volatile__ ("divss %1, %0" : "+x" (f) : "x" (g));
(void) &f;
}