Make asm-based constraints be gcc-only

This commit is contained in:
Stan Shebs 2018-09-26 14:16:30 -07:00 committed by Fangrui Song
parent 4b86f820b8
commit 452fe68a53

View File

@ -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>