Re: Sequence of access to passes.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ankit Mahanot <ankit1986@xxxxxxxxx> writes:

> Q - Where do I find implementations of O1 O2 O3 ?? In which file ?? I
> looked into gcc/gcc/c-opts.c. I could find most of the options except
> O1 O2 etc :(

It's mostly the other way around.  The gate function for each pass
decides whether to run based on the optimization level.  That said,
several passes have associated -f options; for those passes the code in
opts.c sets the appropriate flag variables for -On.  Also the backends
can override the choices.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux