aboutsummaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-02-21 21:00:56 -0500
committerDJ Delorie <dj@gcc.gnu.org>2005-02-21 21:00:56 -0500
commit1d27fed446abb6a831261c004803cf23d994b296 (patch)
treef5b0b6c3a483e1133a6d5c98e0fa842e70566ec9 /gcc/expmed.c
parent933e5b284a41cc6e1d21805c350d9aea5ef84006 (diff)
downloadgcc-1d27fed446abb6a831261c004803cf23d994b296.zip
gcc-1d27fed446abb6a831261c004803cf23d994b296.tar.gz
gcc-1d27fed446abb6a831261c004803cf23d994b296.tar.bz2
tree-ssa-loop-ivopts.c (computation_cost): Start register numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using...
* tree-ssa-loop-ivopts.c (computation_cost): Start register numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard registers in unsupported ways. * expmed.c (init_expmed): Likewise. From-SVN: r95373
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 55eb7d1..afbbaf5 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -145,7 +145,8 @@ init_expmed (void)
memset (&all, 0, sizeof all);
PUT_CODE (&all.reg, REG);
- REGNO (&all.reg) = 10000;
+ /* Avoid using hard regs in ways which may be unsupported. */
+ REGNO (&all.reg) = LAST_VIRTUAL_REGISTER + 1;
PUT_CODE (&all.plus, PLUS);
XEXP (&all.plus, 0) = &all.reg;