From 328c5f650ffcdc8f10e4ebd6f741ad0b8e6ea1c1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 16 Mar 2001 01:10:29 +0000 Subject: 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 * intl/Makefile: Fix a typo. 2001-03-14 David Mosberger * gmon/gmon.c (write_call_graph): Avoid unaligned accesses when writing arc structures. 2001-03-15 H.J. Lu * elf/Makefile ($(objpfx)tst-pathopt.out): Protected against cross-compiling. 2001-03-13 Andreas Schwab * posix/PTESTS2C.sed: Replace literal CRs by `\r'. 2001-03-15 Ulrich Drepper * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Fix test for control message fitting into message data. Patch by James Antill . --- gmon/gmon.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'gmon') diff --git a/gmon/gmon.c b/gmon/gmon.c index a0c5714..8c8906e 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) { -- cgit v1.1