mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 16:25:40 +08:00
* final.c (shorten_branches): Initialize insn_addresses.
From-SVN: r18448
This commit is contained in:
parent
97e3c42239
commit
af0356161e
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user