diff options
Diffstat (limited to 'gcc/config/vax')
-rw-r--r-- | gcc/config/vax/vax-modes.def | 23 | ||||
-rw-r--r-- | gcc/config/vax/vax.c | 5 |
2 files changed, 25 insertions, 3 deletions
diff --git a/gcc/config/vax/vax-modes.def b/gcc/config/vax/vax-modes.def new file mode 100644 index 00000000000..5f137f9aca9 --- /dev/null +++ b/gcc/config/vax/vax-modes.def @@ -0,0 +1,23 @@ +/* VAX extra machine modes. + Copyright (C) 2003 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* We just need to reset the floating point formats. */ +RESET_FLOAT_FORMAT (SF, vax_f_format); +RESET_FLOAT_FORMAT (DF, vax_d_format); diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index a4ec09191e6..dd22e33bbf7 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -85,9 +85,8 @@ void override_options (void) { /* We're VAX floating point, not IEEE floating point. */ - memset (real_format_for_mode, 0, sizeof real_format_for_mode); - REAL_MODE_FORMAT (SFmode) = &vax_f_format; - REAL_MODE_FORMAT (DFmode) = (TARGET_G_FLOAT ? &vax_g_format : &vax_d_format); + if (TARGET_G_FLOAT) + REAL_MODE_FORMAT (DFmode) = &vax_g_format; } /* Generate the assembly code for function entry. FILE is a stdio |