m68k: m680x0 options are not passed to the assembler

Jim Wilson wilson@cygnus.com
Thu Mar 12 17:04:00 GMT 1998


	at least if configured --with-gnu-as, gcc should pass
	any -m680X0 options given on the command line to the
	assembler. At the moment, the user has to supply for
	example an additional -Wa,-m68060 option if -m68060
	was given.

This is bug in whatever unspecified configuration you are using (m68k-linux?).
The embedded configurations {m68k,m68000,m68020,etc}-{aout,coff} handle this
correctly.  See the ASM_SPEC definition in m68k-none.h.  You could add
something similar to the ASM_SPEC definition in whatever tm.h file you are
using.  Or we could perhaps generalize this, e.g. put a CPU_ASM_SPEC in
m68k.h which handles every CPU option, and then use %(CPU_ASM_SPEC) to
include it in the various ASM_SPEC definitions that need it.

Jim



More information about the Gcc-bugs mailing list