On Tue, 16 Dec 2003 22:33:41 +0100 (CET)
"Maciej W. Rozycki" <email@example.com> wrote:
> Since command line options for both gcc and gas has been changed in an
> incompatible way recently and also there are stricter requirements on
> certain options when used simultaneously, I propose the following patch to
> our top-level Makefiles to let the optimal set of options be selected at
> the build time. The intent is to try modern options first, then obsolete
> ones and to set gas options independently to gcc ones as one may be more
> inclined to upgrade binutils that his old trusty gcc.
> The patch implements a make macro called set_gccflags which accepts two
> sets of options consisting of a CPU name and an ISA name each. Within
> both sets "-march=" and failing that "-mcpu=" is checked with the CPU name
> and the ISA name is checked simultaneously. For gcc if the first set of
> options fails, the second one is selected even if it would lead to a
> failure. For gas both sets are checked and if none succeeds, an empty set
> is selected.
> The 32-bit variation accepts a fifth option as well to permit ABI
> selection with an ISA when the "-mabi=" option is unavailable, which is
> also tested.
> Beside letting one use modern tools at all the patch also enables CPU
> selection using newly added (and closer matching) settings like
> "-march=mips64" without forcing users to upgrade tools provided a
> conservative fallback is provided.
> Comments, thoughts, opinions, etc. will be appreciated.
This patch is wonderful for vr4100 series!
I'm using "GNU assembler version 22.214.171.124.6".
The gcc option is set up appropriately.