This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: any m68k gurus out there?


kevin diggs <diggskevin38@gmail.com> writes:

> While trying to REBUILD gcc 3.4.6 (using a -O0 version of itself) on a
> 68040 (Quadra 700, NetBSD 1.6.1) I am getting:
>
> floatformat.s: Assembler messages:
> floatformat.s:1047: Error: operands mismatch -- statement `fmovem.l
> %fpcr,%d5' ignored
> floatformat.s:1163: Error: operands mismatch -- statement `fmovem.l
> %fpcr,%d5' ignored
>
> during the build of libiberty. Ignore the .s. That is from some test
> runs on floatformat.c
>
> The base compiler is 2.95.3. When I tried to build binutils 2.16.1 using:
>
> -O2 -m68040 -fomit-frame-pointer
>
> I ended up with a lot of segfault and/or illegal instruction
> utilities. Switching to:
>
> -O0 -m68040
>
> did seem to work. So I used the same to build the compiler. I then
> tried to rebuild the compiler with its -O0 self. Except this time I
> also tried to use the new binutils.
>
> I checked the M68000PRM.pdf and this does seem to be a valid
> instruction. Is the assembler messed up?

>From your description, you have a problem with the assembler.
Presumably it does not support the 68040 %fpcr register.  Or perhaps
your compiler is not correctly passing the -m68040 option to the
assembler.

Ian


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