sh-elf does not build (union real_extract problem)

Andreas Jaeger aj@suse.de
Mon Apr 1 06:22:00 GMT 2002


Crosscompiling to sh-elf fails on mainline with:

insn-output.c: In function `output_205':
insn-output.c:654: storage size of `u' isn't known
insn-output.c:656: warning: implicit declaration of function `assemble_real'
insn-output.c:654: warning: unused variable `u'
insn-output.c: In function `output_206':
insn-output.c:673: storage size of `u' isn't known
insn-output.c:675: warning: function `assemble_real' was previously declared within a block
insn-output.c:673: warning: unused variable `u'

The problem seems to be this code in sh.md:
      union real_extract u;
      memcpy (&u, &CONST_DOUBLE_LOW (operands[0]), sizeof u);
      assemble_real (u.d, SFmode, GET_MODE_ALIGNMENT (SFmode));

Zack, this seems to be broken by your change on 2002-03-22.  Can you
have a look, please?

Thanks,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Gcc-bugs mailing list