Subject: cc doesn't pass -mev56 to as when -mcpu=ev56?
To: None <port-alpha@netbsd.org, tech-toolchain@netbsd.org>
From: Dave Huang <khym@bga.com>
List: tech-toolchain
Date: 06/23/1999 03:02:06
When compiling stuff with -mcpu=ev56, cc isn't passing -mev56 to the
assembler, which sounds broken to me...

For example, if I try to compile the following with -mcpu=ev56:
  void bla(void) { char c = *(char *)0; }

I get:
/tmp/cci8ePHl.s: Assembler messages:
/tmp/cci8ePHl.s:17: Error: macro requires $at register while noat in effect
/tmp/cci8ePHl.s:18: Error: macro requires $at register while noat in effect

Lines 17 and 18 are:
        ldbu $1,0($31)
        stb $1,16($15)
which I guess are BWX opcodes...

So how do I get this to work? Something about ASM_SPEC in
dist/gcc/config/alpha/netbsd.h?

-- 
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 23 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++