diff options
author | Alan Modra <amodra@gmail.com> | 2005-02-23 12:28:06 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-02-23 12:28:06 +0000 |
commit | 2132e3a3184eae0655a82965d1cc90c65eddfd98 (patch) | |
tree | 5f72eaaca4b7b0f6acc4729bdd42eb5f609d2670 /gas/config/tc-maxq.c | |
parent | 9210d879437155a7f2743a1a59980c79b971627e (diff) | |
download | gdb-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-maxq.c')
-rw-r--r-- | gas/config/tc-maxq.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gas/config/tc-maxq.c b/gas/config/tc-maxq.c index dda7ca4..8c54763 100644 --- a/gas/config/tc-maxq.c +++ b/gas/config/tc-maxq.c @@ -494,7 +494,7 @@ md_convert_frag (object_headers * headers ATTRIBUTE_UNUSED, fragS * fragP) #endif { - unsigned char *opcode; + char *opcode; offsetT target_address; offsetT opcode_address; offsetT displacement_from_opcode_start; @@ -521,9 +521,7 @@ md_convert_frag (object_headers * headers ATTRIBUTE_UNUSED, || fragP->fr_subtype == NO_PREFIX)) { /* Its a displacement. */ - char *p = (char *) &opcode[0]; - - *p = (char) displacement_from_opcode_start; + *opcode = (char) displacement_from_opcode_start; } else { @@ -542,7 +540,6 @@ md_convert_frag (object_headers * headers ATTRIBUTE_UNUSED, if (fragP->fr_subtype != SHORT_PREFIX) { RELOC_ENUM reloc_type; - unsigned char *opcode; int old_fr_fix; int size = 2; @@ -557,7 +554,6 @@ md_convert_frag (object_headers * headers ATTRIBUTE_UNUSED, if (reloc_type == 1) size = 0; old_fr_fix = fragP->fr_fix; - opcode = (unsigned char *) fragP->fr_opcode; fragP->fr_fix += (size); |