Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* gprof fix
@ 1997-03-16 19:59 David Mosberger-Tang
  1997-03-17 15:55 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: David Mosberger-Tang @ 1997-03-16 19:59 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gprof fix
  1997-03-16 19:59 gprof fix David Mosberger-Tang
@ 1997-03-17 15:55 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 1997-03-17 15:55 UTC (permalink / raw)


Date: Sun, 16 Mar 1997 12:59:13 -0700
   From: David Mosberger-Tang <davidm@AZStarNet.COM>

   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.

Thanks.  I checked this in.

Ian

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-03-17 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-16 19:59 gprof fix David Mosberger-Tang
1997-03-17 15:55 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox