Cross gcc Mailing List Archive
[Prev][Next][Index][Thread]
Re: A few questions about building a canadian cross
Richard Achmatowicz writes:
2) Problem #2 : Changing the default target
Another problem with the configuration I am having is setting the
default target correctly. The default build for the m68k is -m68020
-m68881. I just want to be able to code:
gcc -o hello -T mvme101.ld hello.c
to run the compiler. I went into the configuration files which are
getting pulled in
m68k/m68k-coff.h
m68k/m68k-none.h
m68k/m68kemb.h
m68k/coff.h
and
m68k/m68k.h
and found the blurb on setting the macro DEFAULT_TARGET. In m68k-none.h,
I changed the value to
#define DEFAULT_TARGET -01405
which appeared to be the correct value for -m68000 only, but still got a
default of -msoft-float when the cross compiler finally built.
Does anyone know how to set this correctly? It seems to be tied in with
the CPP_SPEC macro, which relates to my next question.
The value for TARGET_DEFAULT for a plain 68000 is 0, unless you want 16-bit
"int"s, in which case you want 0x20. The TARGET_SWITCHES table describes how
to modify a given value of target_flags to accomodate a particular switch. The
value of TARGET_DEFAULT is the bitwise OR of the various options that are
described in the definitions of TARGET_*. You could do it with CPP_SPEC and
friends, but it's not really the right way.
Ken Rose <rose@netcom.com>
Home |
Subject Index |
Thread Index