From: Andreas Schwab Date: Fri, 21 Mar 2003 14:02:09 +0000 (+0000) Subject: * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e39edc66a90500488b30acc01eb83fa82b08609e;p=binutils-gdb.git * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to avoid aliasing issue. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 48f5d0833d0..7d1305cf4a6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2003-03-21 Andreas Schwab + + * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to + avoid aliasing issue. + 2003-03-21 Martin Schwidefsky * config/tc-s390.c (s390_arch_size): Initialize to zero. diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index 875f4fd86fd..2a7b9703193 100644 --- a/gas/config/tc-ia64.c +++ b/gas/config/tc-ia64.c @@ -3261,14 +3261,14 @@ generate_unwind_image (text_name) const char *text_name; { int size; - unsigned char *unw_rec; + void *unw_rec; /* Force out pending instructions, to make sure all unwind records have a valid slot_number field. */ ia64_flush_insns (); /* Generate the unwind record. */ - size = output_unw_records (unwind.list, (void **) &unw_rec); + size = output_unw_records (unwind.list, &unw_rec); if (size % md.pointer_size != 0) as_bad ("Unwind record is not a multiple of %d bytes.", md.pointer_size);