From: David Mosberger-Tang <davidm@azstarnet.com>
Subject: gprof fix
Date: Sun, 16 Mar 1997 12:59:13 -0700 [thread overview]
Message-ID: <199703161959.MAA00575@panda.mosberger> (raw)
Here is a fix for gprof in binutils-2.7. The patch is relative to the
Red Hat 4.1 binutils RPM, but it's completely trivial and should apply
cleanly to the original sources as well. Without the patch, there are
cases where you get SIGFPE on the Alpha because some the double
variables in the Arc structure remained uninitialized.
--david
--- binutils-2.7.0.2/gprof/ChangeLog~ Wed Jul 17 00:10:02 1996
+++ binutils-2.7.0.2/gprof/ChangeLog Sun Mar 16 12:53:52 1997
@@ -1,3 +1,8 @@
+Sun Mar 16 12:53:38 1997 David Mosberger-Tang <davidm@azstarnet.com>
+
+ * cg_arcs.c (arc_add): memset() newly alloced arc to ensure
+ all fields are initialized with 0.
+
Thu Jul 4 12:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
* Released binutils 2.7.
--- binutils-2.7.0.2/gprof/cg_arcs.c~ Sat Mar 30 23:07:54 1996
+++ binutils-2.7.0.2/gprof/cg_arcs.c Sun Mar 16 12:53:26 1997
@@ -84,6 +84,7 @@
return;
}
arc = (Arc *) xmalloc (sizeof (*arc));
+ memset (arc, 0, sizeof (*arc));
arc->parent = parent;
arc->child = child;
arc->count = count;
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-03-16 19:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-16 19:59 David Mosberger-Tang [this message]
1997-03-17 15:55 ` gprof fix Ian Lance Taylor
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox