summary refs log tree commit diff
path: root/gmon/gmon.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-03-16 01:10:29 +0000
committerUlrich Drepper <drepper@redhat.com>2001-03-16 01:10:29 +0000
commit328c5f650ffcdc8f10e4ebd6f741ad0b8e6ea1c1 (patch)
tree1fddc1969e068ef5e59f75c8ad685804b8685c2f /gmon/gmon.c
parent3bf927cbce1d0829b587f5f0eee744e907921c58 (diff)
downloadglibc-328c5f650ffcdc8f10e4ebd6f741ad0b8e6ea1c1.tar.gz
glibc-328c5f650ffcdc8f10e4ebd6f741ad0b8e6ea1c1.tar.xz
glibc-328c5f650ffcdc8f10e4ebd6f741ad0b8e6ea1c1.zip
Update.
	* timezone/antarctica: Update from tzdata2001a.
	* timezone/asia: Likewise.
	* timezone/australasia: Likewise.
	* timezone/backward: Likewise.
	* timezone/etcetera: Likewise.
	* timezone/europe: Likewise.
	* timezone/leapseconds: Likewise.
	* timezone/northamerica: Likewise.
	* timezone/southamerica: Likewise.
	* timezone/systemv: Likewise.
	* timezone/yearistype: Likewise.
	* timezone/zone.tab: Likewise.
	* timezone/tzdump.c: Update from tzcode2001a.

2001-03-15  H.J. Lu  <hjl@gnu.org>

	* intl/Makefile: Fix a typo.

2001-03-14  David Mosberger  <davidm@hpl.hp.com>

	* gmon/gmon.c (write_call_graph): Avoid unaligned accesses when
	writing arc structures.

2001-03-15  H.J. Lu  <hjl@gnu.org>

	* elf/Makefile ($(objpfx)tst-pathopt.out): Protected against
	cross-compiling.

2001-03-13  Andreas Schwab  <schwab@suse.de>

	* posix/PTESTS2C.sed: Replace literal CRs by `\r'.

2001-03-15  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Fix test
	for control message fitting into message data.
	Patch by James Antill <james@and.org>.
Diffstat (limited to 'gmon/gmon.c')
-rw-r--r--gmon/gmon.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/gmon/gmon.c b/gmon/gmon.c
index a0c5714164..8c8906eca4 100644
--- a/gmon/gmon.c
+++ b/gmon/gmon.c
@@ -235,10 +235,18 @@ write_call_graph (fd)
 	   to_index != 0;
 	   to_index = _gmonparam.tos[to_index].link)
 	{
-	  *(char **) raw_arc[nfilled].from_pc = (char *) frompc;
-	  *(char **) raw_arc[nfilled].self_pc =
-	    (char *)_gmonparam.tos[to_index].selfpc;
-	  *(int *) raw_arc[nfilled].count = _gmonparam.tos[to_index].count;
+	  struct arc
+	    {
+	      char *frompc;
+	      char *selfpc;
+	      int32_t count;
+	    }
+	  arc;
+
+	  arc.frompc = (char *) frompc;
+	  arc.selfpc = (char *) _gmonparam.tos[to_index].selfpc;
+	  arc.count  = _gmonparam.tos[to_index].count;
+	  memcpy (raw_arc + nfilled, &arc, sizeof (raw_arc [0]));
 
 	  if (++nfilled == NARCS_PER_WRITEV)
 	    {