aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-11-05 11:08:27 +0000
committerNick Clifton <nickc@redhat.com>2010-11-05 11:08:27 +0000
commitd75d1c9fe1b42014a16a3a23972d6e8683a7a4f3 (patch)
treea641afb791586373cda7ee780fac8b4ff52a0856 /gas
parent9b585a95b7c5e7957a40f43248abc54b8c7eb046 (diff)
downloadgdb-d75d1c9fe1b42014a16a3a23972d6e8683a7a4f3.zip
gdb-d75d1c9fe1b42014a16a3a23972d6e8683a7a4f3.tar.gz
gdb-d75d1c9fe1b42014a16a3a23972d6e8683a7a4f3.tar.bz2
* config/tc-cr16.c (getprocreg_image): Fix typo MAX_PREG ->
MAX_REG. (getprocregp_image): Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-cr16.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4f098cd..8433afd 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-05 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-cr16.c (getprocreg_image): Fix typo MAX_PREG ->
+ MAX_REG.
+ (getprocregp_image): Likewise.
+
2010-11-05 Tristan Gingold <gingold@adacore.com>
* po/gas.pot: Regenerate
diff --git a/gas/config/tc-cr16.c b/gas/config/tc-cr16.c
index 2a5b2f7..a6185f9 100644
--- a/gas/config/tc-cr16.c
+++ b/gas/config/tc-cr16.c
@@ -1669,7 +1669,7 @@ getprocreg_image (reg r)
char *reg_name;
/* Check whether the register is in registers table. */
- if (r < MAX_PREG)
+ if (r < MAX_REG)
rreg = &cr16_pregtab[r - MAX_REG];
/* Register not found. */
else
@@ -1708,7 +1708,7 @@ getprocregp_image (reg r)
int pregptab_disp = 0;
/* Check whether the register is in registers table. */
- if (r < MAX_PREG)
+ if (r < MAX_REG)
{
r = r - MAX_REG;
switch (r)