This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Code generation bug in EGCS-1.1b h8300-hms-crosscompiler



  In message <3649D439.140FB868@swol.de>you write:
  > Hi!
  > 
  > The following program compiles wrong with "h8300-hms-gcc -mh main.c":
  > 
  >     float f;
  > 
  >     int main()
  >     {
  >       f = 1.23;
  >       while(1);
  >     }
  > 
  > The disassembled code is (objdump --disassemble main.o):
  > 
  > main.o:     file format coff-h8300
  > 
  > Disassembly of section .text:
  > 
  > 00000000 <_main>:
  >    0:   01 00 6d f6     01 00 6d f6       mov.l er6,@-er7
  >    4:   0f f6           0f f6             mov.l er7,er6
  >    6:   01 00 6b 02     01 00 6b 02 00 00 mov.l @0x0:16,er2        <---- BU
  > G!!!
This is fixed in current egcs snapshots.

jeff


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