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]

Cross compiler won't properly build software floating point for m68k


I have been trying for nearly a month now to build gcc-2.95.1 (and .2) for
a m68k-coff target (mc68332, NO floating point hardware).  I can build hte
compiler and all of the tools.  Compiling files for the target works,  but
I always get "illiegal instruction" from the debugger when a floating
point instruction is reached.

this DID work several years back with gcc-2.7.2. I'm trying to build
current tools for this project,  but I have so far not been able to get
them to behave. (I'm using binutils 2.9.1 built for this target)  The host
machine is redhat 6.1 with all updates)

The spec file for the compiler I built is below.
The compiler was built with the following arguments:
./gcc-2.95.2/configure 
--with-gcc-version-trigger=/scratch/build-tree/gcc-2.95.2/gcc/version.c 
--host=i686-pc-linux-gnu --target=m68k-coff
--prefix=/scratch/local --with-newlib
--with-headers=../newlib-1.8.1/newlib/libc/include -v
--enable-languages=c 


HELP!

Sorry for the large posting...

*asm:
%{m68851}%{mno-68851}%{m68881}%{mno-68881}%{msoft-float:-mno-68881
}%{m68000}%{m
68302}%{mc68000}%{m68010}%{m68020}%{mc68020}%{m68030}%{m68040}%{m68020-40:-mc680
40 }%{m68020-60:-mc68040
}%{m68060}%{mcpu32}%{m68332}%{m5200}%{!mc68000:%{!m6800
0:%{!m68302:%{!m68010:%{!mc68020:%{!m68020:%{!m68030:%{!m68040:%{!m68020-40:%{!m
68020-60:%{!m68060:%{!mcpu32:%{!m68332:%{!m5200:%(asm_cpu_default)
}}}}}}}}}}}}}
} 

*asm_final:


*cpp:
%(cpp_fpu)%{!ansi:%{m68302:-Dmc68302 }%{m68010:-Dmc68010
}%{m68020:-Dmc68020 }%{
mc68020:-Dmc68020 }%{m68030:-Dmc68030 }%{m68040:-Dmc68040
}%{m68020-40:-Dmc68020
 -Dmc68030 -Dmc68040 }%{m68020-60:-Dmc68020 -Dmc68030 -Dmc68040 -Dmc68060
}%{m68
060:-Dmc68060 }%{mcpu32:-Dmcpu32 } %{m68332:-Dmc68332 -Dmcpu32
}%{m5200:-Dmcf520
0 }} %{m68302:-D__mc68302__ -D__mc68302 }%{m68010:-D__mc68010__
-D__mc68010 }%{m
68020:-D__mc68020__ -D__mc68020 }%{mc68020:-D__mc68020__ -D__mc68020
}%{m68030:-
D__mc68030__ -D__mc68030 }%{m68040:-D__mc68040__ -D__mc68040
}%{m68020-40:-D__mc
68020__ -D__mc68030__ -D__mc68040__ -D__mc68020 -D__mc68030 -D__mc68040
}%{m6802
0-60:-D__mc68020__ -D__mc68030__ -D__mc68040__ -D__mc68020 -D__mc68030
-D__mc680
40 -D__mc68060__ -D__mc68060 }%{m68060:-D__mc68060__ -D__mc68060
}%{mcpu32:-D__m
cpu32__ -D__mcpu32 }%{m68332:-D__mc68332__ -D__mc68332 -D__mcpu32__
-D__mcpu32 }
%{m5200:-D__mcf5200__ -D__mcf5200 }
%{!mc68000:%{!m68000:%{!m68302:%{!m68010:%{!
mc68020:%{!m68020:%{!m68030:%{!m68040:%{!m68020-40:%{!m68020-60:%{!m68060:%{!mcp
u32: %{!m68332:%{!m5200:%(cpp_cpu_default)}}}}}}}}}}}}}} %(cpp_subtarget) 

*cc1:


*cc1plus:


*endfile:


*link:

*lib:


*libgcc:
-lgcc

*startfile:
%{!shared:%{pg:pgcrt0%O%s}%{!pg:%{p:pcrt0%O%s}%{!p:crt0%O%s}}}

*switches_need_spaces:


*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}

*predefines:
-Dmc68000 -D__embedded__ -Asystem(embedded)   -Amachine(mc68000)

*cross_compile:
1

*version:
2.95.2

*multilib:
. !m68000 !m68020 !m5200 !mcpu32 !m68881 !msoft-float;m68000 m68000
!m68020 !m52
00 !mcpu32 !m68881 !msoft-float;m68020 !m68000 m68020 !m5200 !mcpu32
!m68881 !ms
oft-float;m5200 !m68000 !m68020 m5200 !mcpu32 !m68881 !msoft-float;mcpu32
!m6800
0 !m68020 !m5200 mcpu32 !m68881 !msoft-float;m68881 !m68000 !m68020 !m5200
!mcpu
32 m68881 !msoft-float;msoft-float !m68000 !m68020 !m5200 !mcpu32 !m68881
msoft-
float;m68000/m68881 m68000 !m68020 !m5200 !mcpu32 m68881
!msoft-float;m68020/m68
881 !m68000 m68020 !m5200 !mcpu32 m68881 !msoft-float;m68020/msoft-float
!m68000
 m68020 !m5200 !mcpu32 !m68881 msoft-float;

*multilib_defaults:
m68020 m68881

*multilib_extra:


*multilib_matches:
mc68000 m68000;m68302 m68000;m68332 mcpu32;mc68020 m68020;m68040
m68020;m68060 m
68020;m68000 m68000;m68020 m68020;m5200 m5200;mcpu32 mcpu32;m68881
m68881;msoft-
float msoft-float;

*linker:
collect2

*cpp_cpu_default:
%{!ansi:-Dmc68020 } -D__mc68020 -D__mc68020__

*cpp_fpu:
%{!mc68000:%{!m68000:%{!m68302:%{!mcpu32:%{!m68332:%{!m5200:%{!msoft-float:%{!mn
o-68881:%{!mfpa:%{!msky:-D__HAVE_68881__ }}}}}}}}}}
%{m68881:-D__HAVE_68881__ }%
{mfpa:-D__HAVE_FPA__ }%{msky:-D__HAVE_SKY__ }

*cpp_subtarget:


*asm_cpu_default:
-mc68020

*link_command:
%{!fsyntax-only:  %{!c:%{!M:%{!MM:%{!E:%{!S:%(linker) %l %X %{o*} %{A}
%{d} %{e*
} %{m} %{N} %{n}                        %{r} %{s} %{t} %{u*} %{x} %{z}
%{Z}    %
{!A:%{!nostdlib:%{!nostartfiles:%S}}}                   %{static:} %{L*}
%D %o %
{!nostdlib:%{!nodefaultlibs:%G %L %G}}
%{!A:%{!nostdlib:%{!nost
artfiles:%E}}}                  %{T*}
 }}}}}}



Dave J. Andruczyk
Instructional Support Associate
Department of Technology     
Buffalo State College




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