aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-01-11 01:47:23 +0000
committerNick Clifton <nickc@gcc.gnu.org>2001-01-11 01:47:23 +0000
commit73d771f0f43b2e6f988f35daf0b6d8bef566fe2c (patch)
treed07d2f0c8d4fd8440e109f7495390c02efaef4ee /gcc
parentcbd5937a3d6a1cb2ca5e85ef86f7793744d669d8 (diff)
downloadgcc-73d771f0f43b2e6f988f35daf0b6d8bef566fe2c.zip
gcc-73d771f0f43b2e6f988f35daf0b6d8bef566fe2c.tar.gz
gcc-73d771f0f43b2e6f988f35daf0b6d8bef566fe2c.tar.bz2
Initialise machine_function structure to zero.
From-SVN: r38888
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/d30v/d30v.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 38524d0..8b18c95 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/d30v/d30v.c b/gcc/config/d30v/d30v.c
index 3c02f10..c103e81 100644
--- a/gcc/config/d30v/d30v.c
+++ b/gcc/config/d30v/d30v.c
@@ -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