* final.c (shorten_branches): Initialize insn_addresses.

From-SVN: r18448
This commit is contained in:
J"orn Rennecke 1998-03-09 12:00:42 +00:00 committed by Joern Rennecke
parent 97e3c42239
commit af0356161e
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Mon Mar 9 19:57:56 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* final.c (shorten_branches): Initialize insn_addresses.
Mon Mar 9 14:10:23 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* sh.h (MUST_PASS_IN_STACK): Define.

View File

@ -1067,6 +1067,9 @@ shorten_branches (first)
if (insn_addresses)
free (insn_addresses);
insn_addresses = (int *) xmalloc (max_uid * sizeof (int));
/* Syntax errors can lead to labels being outside of the main insn stream.
Initialize insn_addresses, so that we get reproducible results. */
bzero ((char *)insn_addresses, max_uid * sizeof *insn_addresses);
if (uid_align)
free (uid_align);
uid_align = (rtx *) xmalloc (max_uid * sizeof *uid_align);