diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2011-04-27 19:31:13 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2011-04-27 19:31:13 +0000 |
commit | 5782bfe76a6014a278ca554cab884044b529d4a6 (patch) | |
tree | d5c671661f68869035bd624ed4a4e04b12fb9aef /gnu/gcc | |
parent | 5eada17a39cf5aa932c479f991755579c83c0500 (diff) |
Merge from gcc3:
Default gcc on alpha to -mfp-rounding-mode=d, to make code which assumes
the rounding mode is always controlled by fpsetround() happy.
ok martynas@, miod@
Diffstat (limited to 'gnu/gcc')
-rw-r--r-- | gnu/gcc/gcc/config/alpha/alpha.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/gcc/gcc/config/alpha/alpha.c b/gnu/gcc/gcc/config/alpha/alpha.c index 5fcd5d66d9a..35c88ee82ff 100644 --- a/gnu/gcc/gcc/config/alpha/alpha.c +++ b/gnu/gcc/gcc/config/alpha/alpha.c @@ -291,12 +291,19 @@ override_options (void) 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 consistently 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; |