mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-27 11:53:21 +08:00
* config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
avoid aliasing issue.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-03-21 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
|
||||||
|
avoid aliasing issue.
|
||||||
|
|
||||||
2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||||
|
|
||||||
* config/tc-s390.c (s390_arch_size): Initialize to zero.
|
* config/tc-s390.c (s390_arch_size): Initialize to zero.
|
||||||
|
@ -3261,14 +3261,14 @@ generate_unwind_image (text_name)
|
|||||||
const char *text_name;
|
const char *text_name;
|
||||||
{
|
{
|
||||||
int size;
|
int size;
|
||||||
unsigned char *unw_rec;
|
void *unw_rec;
|
||||||
|
|
||||||
/* Force out pending instructions, to make sure all unwind records have
|
/* Force out pending instructions, to make sure all unwind records have
|
||||||
a valid slot_number field. */
|
a valid slot_number field. */
|
||||||
ia64_flush_insns ();
|
ia64_flush_insns ();
|
||||||
|
|
||||||
/* Generate the unwind record. */
|
/* 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)
|
if (size % md.pointer_size != 0)
|
||||||
as_bad ("Unwind record is not a multiple of %d bytes.", md.pointer_size);
|
as_bad ("Unwind record is not a multiple of %d bytes.", md.pointer_size);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user