Initialise machine_function structure to zero.
authorNick Clifton <nickc@redhat.com>
Thu, 11 Jan 2001 01:47:23 +0000 (01:47 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 11 Jan 2001 01:47:23 +0000 (01:47 +0000)
From-SVN: r38888

gcc/ChangeLog
gcc/config/d30v/d30v.c

index 38524d0ac731edd2fbca6c56425b82683435e89d..8b18c95396f746447ea947d7dd3ed8205b5697a5 100644 (file)
@@ -1,3 +1,9 @@
+2001-01-10  Nick Clifton  <nickc@redhat.com>
+
+       * config/d30v/d30v.c (d30v_init_machine_status): Initialise
+       machine_function structure to zero.
+       Add prototypes for machine_status functions.
+
 2001-01-10  Mark Mitchell  <mark@codesourcery.com>
 
        * c-common.h (CTI_VOID_LIST): Remove.
index 3c02f10cb2c899f5b886597bbfb6950ad7a9621c..c103e81b36b50c7eaf071ffddc12ab41d3e10a39 100644 (file)
@@ -45,6 +45,9 @@ static void d30v_print_operand_memory_reference PARAMS ((FILE *, rtx));
 static void d30v_build_long_insn PARAMS ((HOST_WIDE_INT, HOST_WIDE_INT,
                                          rtx, rtx));
 static void d30v_add_gc_roots PARAMS ((void));
+static void d30v_init_machine_status PARAMS ((struct function *));
+static void d30v_mark_machine_status PARAMS ((struct function *));
+static void d30v_free_machine_status PARAMS ((struct function *));
 
 /* Define the information needed to generate branch and scc insns.  This is
    stored from the compare operation.  */
@@ -3596,7 +3599,7 @@ d30v_init_machine_status (p)
      struct function *p;
 {
   p->machine =
-    (struct machine_function *) xmalloc (sizeof (struct machine_function));
+    (machine_function *) xcalloc (1, sizeof (machine_function));
 }
 
 static void