mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 23:00:22 +00:00
Make asm-based constraints be gcc-only
This commit is contained in:
parent
4b86f820b8
commit
452fe68a53
@ -24,11 +24,13 @@
|
||||
#include <dl-procinfo.h>
|
||||
#include <fenv_private.h>
|
||||
|
||||
#if !defined __clang__ /* clang being confused by these constraints */
|
||||
/* Avoid putting floating point values in memory. */
|
||||
# define math_opt_barrier(x) \
|
||||
({ __typeof (x) __x = (x); __asm ("" : "+dwa" (__x)); __x; })
|
||||
# define math_force_eval(x) \
|
||||
({ __typeof (x) __x = (x); __asm __volatile__ ("" : : "dwa" (__x)); })
|
||||
#endif /* clang */
|
||||
|
||||
#include_next <math_private.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user