summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1999-12-03 06:37:47 +0000
committerthorpej <thorpej@NetBSD.org>1999-12-03 06:37:47 +0000
commit4a9e81df67b4b477f5d7fd63aec215bdda86ae7d (patch)
tree7742b4d891473211bd9e1d405a32b552989a5cfa /gnu
parent179a2df725d2a67ce05af148e75bbeaa98248c38 (diff)
Pass in the appropriate machine directive to the assembler if an -mcpu=...
option is given to the compiler. It's silly to have to specify it twice on a command line (e.g. -mcpu=ev56 -Wa,-mev56), especially considering that if you don't, and the compiler emits e.g. a BWX instruction, the assembler will treat it as a macro, open-coding an equivalent, which can have some serious unwanted side-effects in some situations. Also, don't treat e.g. 21164 and ev5 as equivalent; the assembler treats them differently: 21164 enables PALcode-only instructions, while ev5 does not.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/dist/gcc/config/alpha/netbsd.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/dist/gcc/config/alpha/netbsd.h b/gnu/dist/gcc/config/alpha/netbsd.h
index 751043cdf05..f75f43842f7 100644
--- a/gnu/dist/gcc/config/alpha/netbsd.h
+++ b/gnu/dist/gcc/config/alpha/netbsd.h
@@ -87,7 +87,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
necessary on the Alpha. */
#undef ASM_SPEC
-#define ASM_SPEC " %|"
+#define ASM_SPEC " %| \
+ %{mcpu=ev4:-mev4} \
+ %{mcpu=21064:-m21064} \
+ %{mcpu=ev5:-mev5} \
+ %{mcpu=21164:-m21164} \
+ %{mcpu=ev56:-mev56} \
+ %{mcpu=21164a:-m21164a} \
+ %{mcpu=pca56:-mpca56} \
+ %{mcpu=21164pc|mcpu=21164PC:-m21164pc} \
+ %{mcpu=ev6:-mev6} \
+ %{mcpu=21264:-m21264}"
/* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. Only
the linker emulation and -O options are Alpha-specific. The rest are