diff options
author | 2011-04-26 20:22:56 +0000 | |
---|---|---|
committer | 2011-04-26 20:22:56 +0000 | |
commit | 9f7a7bee3d80f8510f55eccabdd213818d98f6a9 (patch) | |
tree | 79ea34005201d472a52ba70f5e9296d564db4e87 | |
parent | Make dpt(4) compile on 64-bit arches; no binary change on i386. (diff) | |
download | wireguard-openbsd-9f7a7bee3d80f8510f55eccabdd213818d98f6a9.tar.xz wireguard-openbsd-9f7a7bee3d80f8510f55eccabdd213818d98f6a9.zip |
Default gcc on alpha to -mfp-rounding-mode=d, to make code which assumes
the rounding mode is always controlled by fpsetround() happy.
Noticed by and ok martynas@
-rw-r--r-- | gnu/usr.bin/gcc/gcc/config/alpha/alpha.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/alpha/alpha.c b/gnu/usr.bin/gcc/gcc/config/alpha/alpha.c index e4fa8386c32..1293b785e18 100644 --- a/gnu/usr.bin/gcc/gcc/config/alpha/alpha.c +++ b/gnu/usr.bin/gcc/gcc/config/alpha/alpha.c @@ -344,12 +344,19 @@ override_options () flag_pic = 0; } +#if defined(OPENBSD_NATIVE) || defined(OPENBSD_CROSS) + if (TARGET_FLOAT_VAX) + alpha_fprm = ALPHA_FPRM_NORM; + else + alpha_fprm = ALPHA_FPRM_DYN; +#else /* On Unicos/Mk, the native compiler consistenly generates /d suffices for floating-point instructions. Make that the default for this target. */ if (TARGET_ABI_UNICOSMK) alpha_fprm = ALPHA_FPRM_DYN; else alpha_fprm = ALPHA_FPRM_NORM; +#endif alpha_tp = ALPHA_TP_PROG; alpha_fptm = ALPHA_FPTM_N; |