This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Overriding cc1




Ian Lance Taylor <ian@wasabisystems.com> wrote on 05/13/2004 12:50:21 PM:

> Pat Haugen <pthaugen@us.ibm.com> writes:
>
> > Is there a command line option for gcc that would allow me to override
the
> > cc1 executable that gets invoked?
> >
> > gcc -???=/some/path/cc1.new  file.c
>
> You can't override cc1 precisely.  What you can do is use the -B
> option to specify a different directory to search for all programs
> including cc1.  See the docs.
>
> Ian


OK, knew about -B but was hoping to just be able to override cc1, which it
doesn't sound like I can do.

In case anyone was curious on "what" I was wanting this for. Was looking
for a simple way of comparing output (code gen or dumps) between two (or
more) versions of cc1 built off the same code base with individual tweaks
here and there. Currently going at it by just shuffling "cc1.versionN" into
the normal "cc1" location and getting what I want, then shuffling in the
next "cc1.versionM" in...




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]