Overriding cc1

Dave Korn dk@artimi.com
Fri May 14 10:30:00 GMT 2004


> -----Original Message-----
> From: gcc-owner On Behalf Of Alexandre Oliva
> Sent: 14 May 2004 06:49

> On May 13, 2004, Pat Haugen <pthaugen@us.ibm.com> wrote:
> 
> > OK, knew about -B but was hoping to just be able to 
> override cc1, which it
> > doesn't sound like I can do.
> 
> Well, turns out you can: just create a dir containing only a link to
> your overrider.


  Hold on.  Rather than creating lots of different versions called
cc1.versionN, why not create lots of subdirs in ..lib/gcc-lib/$target called
after .versionN, put the compilers in them (all still named cc1), and then
use the -V option to make the driver choose between them?




    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....



More information about the Gcc mailing list