aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ppc.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-05-06 11:01:48 +0000
committerNick Clifton <nickc@redhat.com>2004-05-06 11:01:48 +0000
commite59763172f0ba262bc2b0452db6fb816c457bba3 (patch)
tree3dbbd1d7f9491655b38ef50a0b936f2b94be763d /gas/config/tc-ppc.c
parent41cf0c62851dd766a7c2558c396a7babdc657d86 (diff)
downloadgdb-e59763172f0ba262bc2b0452db6fb816c457bba3.zip
gdb-e59763172f0ba262bc2b0452db6fb816c457bba3.tar.gz
gdb-e59763172f0ba262bc2b0452db6fb816c457bba3.tar.bz2
Remove duplicate code and provide a function for generating internally consistent 'value out of range' messages
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r--gas/config/tc-ppc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 66366a5..fe66d2b 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -1457,14 +1457,7 @@ ppc_insert_operand (insn, operand, val, file, line)
test = val;
if (test < (offsetT) min || test > (offsetT) max)
- {
- const char *err =
- _("operand out of range (%s not between %ld and %ld)");
- char buf[100];
-
- sprint_value (buf, test);
- as_bad_where (file, line, err, buf, min, max);
- }
+ as_bad_value_out_of_range (_("operand"), test, (offsetT) min, (offsetT) max, file, line);
}
if (operand->insert)