From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199703161959.MAA00575@panda.mosberger> Date: Sun, 16 Mar 1997 12:59:13 -0700 From: David Mosberger-Tang Subject: gprof fix 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 + + * 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 * 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