]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/config/vax/vax.c
real.c (struct real_format): Move to real.h.
[gcc.git] / gcc / config / vax / vax.c
index c00189f3a7e5b98d5a34af762fbf025c939d33be..1a83eba2ff8d65854adb00d111a0594d44036bf9 100644 (file)
@@ -66,6 +66,18 @@ static void vms_globalize_label PARAMS ((FILE *, const char *));
 
 struct gcc_target targetm = TARGET_INITIALIZER;
 \f
+/* Set global variables as needed for the options enabled.  */
+
+void
+override_options ()
+{
+  /* We're VAX floating point, not IEEE floating point.  */
+  memset (real_format_for_mode, 0, sizeof real_format_for_mode);
+  real_format_for_mode[SFmode - QFmode] = &vax_f_format;
+  real_format_for_mode[DFmode - QFmode]
+    = (TARGET_G_FLOAT ? &vax_g_format : &vax_d_format);
+}
+
 /* Generate the assembly code for function entry.  FILE is a stdio
    stream to output the code to.  SIZE is an int: how many units of
    temporary storage to allocate.
This page took 0.029886 seconds and 5 git commands to generate.