This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bug in Binutils 2.15 for the H8300H ?


Hi,

recently I upgraded our GNU toolchain for use with the H8/300h and
H8/300s microcontrollers.
When using the binutils 2.15 the errors shown in the following example
assembler file occurred. They do not happen if binutils 2.14 are used:
----------------------------------------------------

.h8300h		;directive for h8300h code
.equ NUMBER, 0x80
.equ NUMBER2, 0x70

; 1st error:
    AND.B	 #~NUMBER, r3l   ; this causes: "Error: invalid operands"
    AND.B	 #~0x0F, r3l	 ; this works
    AND.B	 #~NUMBER2, r3l  ; this also works (error seem to depend on the
        ; number - the most significant bit seems to be the problem)

; 2nd error (does not occur when ".h8300s" is chosen; but the h8300h also
; has this instruction and address mode). The following warning and error
; are issued: Warning: Opcode `bclr' with these operand types not
; available in H8/300H mode ; Error: invalid operands

    bclr  #6, @0xFFFFFF7C ; clear RDRF

-----------------------------------------------------------------------

Does anybody know what causes these errors and how to correct them ?

Thanks,

Hansjuergen Dreuth



__________________
Dr. Hansjürgen Dreuth
Simplify Technologies GmbH, Steinbühlstraße 15, D-35578 Wetzlar,
Tel.: (+49) (0)6441-210390, FAX: (+49) (0)6441-210399,
Email: hansjuergen.dreuth@simplify-technologies.de,
Internet: http:/www.simplify-technologies.de



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]