From: rth Date: Sat, 25 May 2002 00:47:31 +0000 (+0000) Subject: * lcm.c (optimize_mode_switching): Change bb used as indices X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=236764d9961519e4d88b0b23754ea4293d51ee49;p=thirdparty%2Fgcc.git * lcm.c (optimize_mode_switching): Change bb used as indices to bb->index. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53860 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b52d6a6e4893..c6ae2deef48e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-24 Toshiyasu Morita + + * lcm.c (optimize_mode_switching): Change bb used as indices + to bb->index. + 2002-05-24 Richard Henderson * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead diff --git a/gcc/lcm.c b/gcc/lcm.c index 3cb9fe067b42..57a2c7da0a05 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 */