egcs and K6

Philipp Thomas kthomas@gwdg.de
Thu Mar 11 04:58:00 GMT 1999


I have a patch ready that I'll send to egcs-patches in a day or two, that
mostly adds spec entries for the k6 to i386.h.

What I do in specs is mostly defining k6 as well as i586 and pentium. The
reasoning being that few if any software tests for k6 (I intend to change
that :). Any objections to this ? This is because I discovered to my horror
that gcc only defines i386 when called with -mcpu=k6. I also added k6/no-k6
together with descriptions to TARGET_SWITCHES.

What I haven't discovered up til now - and the real reason why I'm writing
to the list - is how is the TARGET_CPU_DEFAULT determined ? My guess is its
taken from the build host definition ?

If that is so, could anybody enlighten me how to get the build process to
set k6 as the default cpu so that I don't have to manually change the specs
file ? If it really stems from configure, I guess I'd have to get the
recognition of k6-* accepted by the autoconf maintainer.


-- 
Philipp

************************************************************
 If builders would build houses like many programmers do       
 their programs, the first woodpecker to come along would
 mean the end of all civilization


More information about the Gcc mailing list