This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Adding machine type cmdline args
- To: <egcs at egcs dot cygnus dot com>
- Subject: Adding machine type cmdline args
- From: "David Fiddes" <D dot J dot Fiddes at hw dot ac dot uk>
- Date: Tue, 20 Apr 1999 12:34:29 +0100
Hi,
I have recently implemented support for the ColdFire MAC instructions(in
m68k) which can be turned on by specifying -mmac when invoking m68k-coff-as.
I'd like to be able to get EGCS to recognise the new cpu type and pass the
parameter on to gas so that I can include the new instructions in inline
assembler. I have been able to specify the appropriate target switches in
gcc/config/m68k.h
/* Compile for ColdFire Multiply and ACcumulate unit */
#define MASK_MAC 4096
#define TARGET_MAC (target_flags & MASK_MAC)
#define TARGET_SWITCHES \
<snip>
{ "mac", MASK_MAC}, \
{ "no-mac", - MASK_MAC}, \
this seems to allow egcs to recognise the new machine type but it doesn't
pass the -mmac option to as.
I'm sure there must be something obvious I'm missing.....
Dave
David Fiddes, CALM Software Production Officer
Department of Mathematics, Heriot-Watt University, Edinburgh
email D.J.Fiddes@hw.ac.uk - Tel: +44 131-451-3251
I support the Campaign for Unmetered Telecommunications
http://www.unmetered.org.uk/