aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-vax.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-23 12:28:06 +0000
committerAlan Modra <amodra@gmail.com>2005-02-23 12:28:06 +0000
commit2132e3a3184eae0655a82965d1cc90c65eddfd98 (patch)
tree5f72eaaca4b7b0f6acc4729bdd42eb5f609d2670 /gas/config/tc-vax.c
parent9210d879437155a7f2743a1a59980c79b971627e (diff)
downloadgdb-2132e3a3184eae0655a82965d1cc90c65eddfd98.zip
gdb-2132e3a3184eae0655a82965d1cc90c65eddfd98.tar.gz
gdb-2132e3a3184eae0655a82965d1cc90c65eddfd98.tar.bz2
* cgen.c: Warning fixes.
* config/tc-arc.c: Likewise. * config/tc-arm.c: Likewise. * config/tc-avr.c: Likewise. * config/tc-d10v.c: Likewise. * config/tc-d30v.c: Likewise. * config/tc-frv.c: Likewise. * config/tc-frv.h: Likewise. * config/tc-h8300.c: Likewise. * config/tc-h8500.c: Likewise. * config/tc-i370.c: Likewise. * config/tc-i960.c: Likewise. * config/tc-ia64.c: Likewise. * config/tc-ip2k.c: Likewise. * config/tc-m68hc11.c: Likewise. * config/tc-maxq.c: Likewise. * config/tc-mcore.c: Likewise. * config/tc-mips.c: Likewise. * config/tc-msp430.c: Likewise. * config/tc-pj.c: Likewise. * config/tc-ppc.c: Likewise. * config/tc-ppc.h: Likewise. * config/tc-s390.c: Likewise. * config/tc-sh.c: Likewise. * config/tc-sh64.c: Likewise. * config/tc-tic4x.c: Likewise. * config/tc-tic80.c: Likewise. * config/tc-v850.c: Likewise. * config/tc-vax.c: Likewise. * config/tc-w65.c: Likewise. * config/tc-xstormy16.c: Likewise. * config/tc-z8k.c: Likewise.
Diffstat (limited to 'gas/config/tc-vax.c')
-rw-r--r--gas/config/tc-vax.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-vax.c b/gas/config/tc-vax.c
index 4cf9e15..1b4e6f1 100644
--- a/gas/config/tc-vax.c
+++ b/gas/config/tc-vax.c
@@ -667,7 +667,8 @@ md_assemble (instruction_string)
/* Remember where it is, in case we want to modify the op-code later. */
opcode_low_byteP = frag_more (v.vit_opcode_nbytes);
memcpy (opcode_low_byteP, v.vit_opcode, v.vit_opcode_nbytes);
- opcode_as_number = md_chars_to_number (opcode_as_chars = v.vit_opcode, 4);
+ opcode_as_chars = v.vit_opcode;
+ opcode_as_number = md_chars_to_number ((unsigned char *) opcode_as_chars, 4);
for (operandP = v.vit_operand,
expP = exp_of_operand,
segP = seg_of_operand,