On 2/2/07, Zdenek Dvorak <[EMAIL PROTECTED]> wrote:
Hello,
> I've changed gcc by adding a new pass, however, when I compile gcc,
> during compilation it calls itself, so I disabled bootstrap but that
> is still happening even during bootstrap. Is there any way to compile
> gcc without the final gcc compiling something?
make stage1-bubble. See also
http://gcc.gnu.org/wiki/Top-Level_Bootstrap
> Moreover, how can I add a flag to gcc so that it enables/disables a given
> pass?
Add the flag to common.opt, and test it in the gate function of your
pass.
Thank you!
Zdenek
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK