public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* any m68k gurus out there?
@ 2011-02-27 19:04 kevin diggs
  2011-02-27 20:32 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: kevin diggs @ 2011-02-27 19:04 UTC (permalink / raw)
  To: gcc-help

Hi,

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?

Thanks!

kevin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: any m68k gurus out there?
  2011-02-27 19:04 any m68k gurus out there? kevin diggs
@ 2011-02-27 20:32 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2011-02-27 20:32 UTC (permalink / raw)
  To: kevin diggs; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-27 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-27 19:04 any m68k gurus out there? kevin diggs
2011-02-27 20:32 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).