diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-31 10:26:51 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-31 10:26:51 +0000 |
commit | c2fa9c2403c6c152c9f7fd2c9559b79168abda20 (patch) | |
tree | f82f19ac344df392572645f64d7bd80320db20b3 /gcc/config/mn10300 | |
parent | 40830e4d2499e6eff18af818f3301cc9c6953a70 (diff) | |
download | gcc-c2fa9c2403c6c152c9f7fd2c9559b79168abda20.tar.gz |
* config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
reg_renumber returning an INVALID_REGNUM.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169432 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mn10300')
-rw-r--r-- | gcc/config/mn10300/mn10300.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c index cbdf02dab22..6b68166059c 100644 --- a/gcc/config/mn10300/mn10300.c +++ b/gcc/config/mn10300/mn10300.c @@ -1996,6 +1996,8 @@ mn10300_regno_in_class_p (unsigned regno, int rclass, bool strict) if (!reg_renumber) return false; regno = reg_renumber[regno]; + if (regno == INVALID_REGNUM) + return false; } return TEST_HARD_REG_BIT (reg_class_contents[rclass], regno); } |