[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] About SPECS of GCC 2.91.66
Hi All,
When I try to compile the following program :
#include <stdio.h>
#include <math.h>
void main()
{
double x;
printf("enter x in degrees : ");
scanf("%lf",&x);
printf("\ncos(%lf) = %lf\n",cos(x*3.141592654/180.0));
getc(stdin);
}
I have the following report :
u:/usr/local/bin/gcc -v -mshort -O4 -m68060 -Iu:/usr/include
-D__M68881__ -c hello.c -o hello.o
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
cpp -lang-c -v -Iu:/usr/include -undef -D__GNUC__=2 -D__GNUC_MINOR__=91
-Dmc68000 -Datarist -Dgem -D__mc68000__ -D__atarist__ -D__gem__
-D__mc68000 -D__atarist -D__gem -Asystem(tos) -Asystem(gem) -Acpu(m68k)
-Amachine(m68k) -D__OPTIMIZE__ -D__MSHORT__ -D__M68881__ hello.c
u:/tmp/cckw1AXd.i
GNU CPP version 2.8.1 (68k, MIT syntax)
#include "..." search starts here:
#include <...> search starts here:
u:/usr/include
/usr/local/include
/usr/include
End of search list.
cc1 u:/tmp/cckw1AXd.i -quiet -dumpbase hello.c -mshort -m68060 -O4
-version -o u:/tmp/ccIegMgq.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release)
(m68k-atari-mint) compiled by GNU C version 2.8.1.
hello.c: In function `main':
hello.c:4: warning: return type of `main' is not `int'
as -mc68000 -o hello.o u:/tmp/ccIegMgq.s
u:/tmp/ccIegMgq.s: Assembler messages:
u:/tmp/ccIegMgq.s:23: Error: invalid instruction for this architecture;
needs 68040 or 68060 -- statement `fdmoved a6@(-8),fp0' ignored
u:/tmp/ccIegMgq.s:24: Error: invalid instruction for this architecture;
needs 68040 or 68060 -- statement `fdmuld #0r3.1415926540000001,fp0'
ignored
u:/tmp/ccIegMgq.s:25: Error: invalid instruction for this architecture;
needs 68040 or 68060 -- statement `fddivd #0r180,fp0' ignored
u:/tmp/ccIegMgq.s:28: Error: invalid instruction for this architecture;
needs fpu (68040, 68060 or 68881/68882) -- statement `fcosx fp0,fp1'
ignored
u:/tmp/ccIegMgq.s:30: Error: invalid instruction for this architecture;
needs fpu (68040, 68060 or 68881/68882) -- statement `fmoved fp1,sp@-'
ignored
make: *** [hello.o] Error 1
What does mean the "Using builtin specs". Does it mean that the SPECS
file is
not read ? Would it explain that the -mc68000 option is passed to as
(the
assembler) ? In any way, I use a correct SPECS file, where should it
be located ? The one that is included in the 2.91.66 release is not
correct for supporting 68060 architecture. I have an HADES 060, and
there soon be a MILAN 060. So, read obout it !
Regards,
Bye for now ...
-- Francois LE COAT
Author of Eureka 2.12 (2D Graph Describer 3D Modeller)
http://eureka.atari.org
mailto:lecoat@atari.org