Subject: toolchain/20622: CC/AS fails for PowerPC
To: None <>
From: Juergen Hannken-Illjes <>
List: netbsd-bugs
Date: 03/08/2003 18:21:06
>Number:         20622
>Category:       toolchain
>Synopsis:       CC/AS fails for PowerPC
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 08 09:22:00 PST 2003
>Originator:     Juergen Hannken-Illjes
>Release:        NetBSD 1.6N
System: NetBSD evbppc
Architecture: powerpc
Machine: powerpc
	The new imported gas gets wrong -m option from gcc and fails to
	understand the m403/m405 opcodes like "mfpid" etc.
	Try to compile a .S/.c with opcode "mfpid".
RCS file: /cvsroot/src/gnu/dist/toolchain/gcc/config/rs6000/netbsd.h,v
retrieving revision 1.8
diff -u -2 -r1.8 netbsd.h
--- netbsd.h	2003/02/28 17:30:16	1.8
+++ netbsd.h	2003/03/08 17:14:47
@@ -39,5 +39,5 @@
 #define ASM_SPEC \
   "-u \
-%{mcpu=601: -m601} %{!mcpu=601: -mppc} \
+%{mcpu=601: -m601} %{mcpu=403: -m403} %{!mcpu*: -mppc} \
 %{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} \
 %{mrelocatable} \