aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ia64.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2003-03-21 14:02:09 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2003-03-21 14:02:09 +0000
commite39edc66a90500488b30acc01eb83fa82b08609e (patch)
treed0c9009a4379643001680f95e9c4795ebff637cb /gas/config/tc-ia64.c
parentaf169f23335a1df5cf6e27b1f3087c18ae32e5a7 (diff)
downloadgdb-e39edc66a90500488b30acc01eb83fa82b08609e.zip
gdb-e39edc66a90500488b30acc01eb83fa82b08609e.tar.gz
gdb-e39edc66a90500488b30acc01eb83fa82b08609e.tar.bz2
* config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
avoid aliasing issue.
Diffstat (limited to 'gas/config/tc-ia64.c')
-rw-r--r--gas/config/tc-ia64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index 875f4fd..2a7b970 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);