Subject: dumb/weird gcc questions
To: None <tech-toolchain@NetBSD.ORG>
From: Bill Studenmund <skippy@macro.stanford.edu>
List: tech-toolchain
Date: 12/20/1997 23:09:25
As part of my present obsession to make the whole tree cross-compilable,
I've started fussing with making it so you can cross compile gcc (target
== host != build).
It's not as hard as it sounds. Basically all I had to do was rip
gcc/common into gcc/common (to build libcc1) and gcc/common_tools (to
contain all of the programs run on the build computer).
Two questions though:
1) I'm now compiling libgcc. libgcc/libgcc2.c generates "warning: alias
definitions not supported in theis configuration" messages, when the
NetBSD gcc is quite happy. I found that gcc/arch/netbsd.h defines
SET_ASM_OP to ".set". The stock gcc-2.7.2.2 doesn't do that. Is there a
way I can do that for the cross compiler (without just hacking on a config
file)?
2) What kind of regression tests are there for gcc? I _EXPECT_ the thing
should work, but I want to make sure. :-)
Take care,
Bill