aboutsummaryrefslogtreecommitdiff
path: root/gcc/lcm.c
diff options
context:
space:
mode:
authorToshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>2002-05-25 00:47:31 +0000
committerRichard Henderson <rth@gcc.gnu.org>2002-05-24 17:47:31 -0700
commitc429f12e2ed0a0612115b8c95935cdf7f9c50c84 (patch)
tree2e11e14843d1c60c8a095c0e396faad5bd84c5e4 /gcc/lcm.c
parent8beda321a502cd0b4df8184c37d109fa53c181a9 (diff)
downloadgcc-c429f12e2ed0a0612115b8c95935cdf7f9c50c84.zip
gcc-c429f12e2ed0a0612115b8c95935cdf7f9c50c84.tar.gz
gcc-c429f12e2ed0a0612115b8c95935cdf7f9c50c84.tar.bz2
lcm.c (optimize_mode_switching): Change bb used as indices to bb->index.
* lcm.c (optimize_mode_switching): Change bb used as indices to bb->index. From-SVN: r53860
Diffstat (limited to 'gcc/lcm.c')
-rw-r--r--gcc/lcm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/lcm.c b/gcc/lcm.c
index 3cb9fe0..57a2c7d 100644
--- a/gcc/lcm.c
+++ b/gcc/lcm.c
@@ -1149,21 +1149,21 @@ optimize_mode_switching (file)
/* If the block already has MODE, pretend it
has none (because we don't need to set it),
but retain whatever mode it computes. */
- if (info[bb].seginfo->mode == mode)
- info[bb].seginfo->mode = no_mode;
+ if (info[bb->index].seginfo->mode == mode)
+ info[bb->index].seginfo->mode = no_mode;
/* Insert a fake computing definition of MODE into entry
blocks which compute no mode. This represents the mode on
entry. */
- else if (info[bb].computing == no_mode)
+ else if (info[bb->index].computing == no_mode)
{
- info[bb].computing = mode;
- info[bb].seginfo->mode = no_mode;
+ info[bb->index].computing = mode;
+ info[bb->index].seginfo->mode = no_mode;
}
}
bb = EXIT_BLOCK_PTR;
- info[bb].seginfo->mode = mode;
+ info[bb->index].seginfo->mode = mode;
}
}
#endif /* NORMAL_MODE */