------- Comment #8 from matz at gcc dot gnu dot org  2009-04-28 00:37 -------
> expand_phi_nodes can and will create RTL code so we need to register the RTL
> CFG hooks before calling it.

Nope, that won't fly (for the moment).  expand_phi_nodes also split edges
and it's necessary that this is done while the tree hooks are still
registered (only those can redirect EH edges).

This whole pass crossover (tree-ssa -> RTL) is a tough problem, and there's a
variable to say that we're inside of it (currently_expanding_to_rtl).
Obviously it would be nicer to make darwin.c not depend on the current IR
mode to set or not set random flags.  If somebody can explain why it's
necessary to let the generated RTL code depend on the IR mode, we could
possibly find a good way around this limitation.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39929

Reply via email to