aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2003-10-15 11:12:53 +0000
committerThiemo Seufer <ths@networkno.de>2003-10-15 11:12:53 +0000
commit1b8e29e5404c9a74a167251fb37aa5ac0d9fd53e (patch)
treea18d1d5696d0b6dbd7ec486190f34cab4eab21fe /gas
parent46e993b970891cc96da82849a3b22fd769fe609a (diff)
downloadfsf-binutils-gdb-1b8e29e5404c9a74a167251fb37aa5ac0d9fd53e.zip
fsf-binutils-gdb-1b8e29e5404c9a74a167251fb37aa5ac0d9fd53e.tar.gz
fsf-binutils-gdb-1b8e29e5404c9a74a167251fb37aa5ac0d9fd53e.tar.bz2
* config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
Fix indentation. Better error message.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c18
2 files changed, 14 insertions, 9 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 39222d3..a4d98de 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
+ Fix indentation. Better error message.
+
2003-10-14 Bob Wilson <bob.wilson@acm.org>
* config/tc-xtensa.c (xtensa_create_property_segments): Remove bfd
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index cd1b424..a776765 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -3271,10 +3271,10 @@ macro_build_ldst_constoffset (char *place, int *counter, expressionS *ep,
== ~((bfd_vma) 0x7fffffff)))
{
if (ep->X_add_number & ~((bfd_vma) 0xffffffff))
- as_bad (_("too large constant specified"));
+ as_bad (_("constant too large"));
- ep->X_add_number = (((ep->X_add_number & 0xffffffff) ^ 0x80000000)
- - 0x80000000);
+ ep->X_add_number = (((ep->X_add_number & 0xffffffff) ^ 0x80000000)
+ - 0x80000000);
}
/* Right now, this routine can only handle signed 32-bit contants. */
@@ -3435,10 +3435,10 @@ load_register (int *counter, int reg, expressionS *ep, int dbl)
== ~((bfd_vma) 0x7fffffff)))
{
if (ep->X_add_number & ~((bfd_vma) 0xffffffff))
- as_bad (_("too large constant specified"));
+ as_bad (_("constant too large"));
- ep->X_add_number = (((ep->X_add_number & 0xffffffff) ^ 0x80000000)
- - 0x80000000);
+ ep->X_add_number = (((ep->X_add_number & 0xffffffff) ^ 0x80000000)
+ - 0x80000000);
}
if (IS_SEXT_16BIT_NUM (ep->X_add_number))
@@ -5946,10 +5946,10 @@ macro (struct mips_cl_insn *ip)
== ~((bfd_vma) 0x7fffffff)))
{
if (offset_expr.X_add_number & ~((bfd_vma) 0xffffffff))
- as_bad (_("too large constant specified"));
+ as_bad (_("constant too large"));
- offset_expr.X_add_number = (((offset_expr.X_add_number & 0xffffffff)
- ^ 0x80000000) - 0x80000000);
+ offset_expr.X_add_number = (((offset_expr.X_add_number & 0xffffffff)
+ ^ 0x80000000) - 0x80000000);
}
/* For embedded PIC, we allow loads where the offset is calculated