Jan Hubicka wrote:
Frank Heckenbach Frank@G-N-U.De Writes:
Andreas Jaeger Wrote:
One More Thing That Does Not Seems To Work Are Profile Driven Optimizations. Are You Supporting -Profile-Arcs And -Fbranch-Probabilities?
We Don't Do Anything Special About Them. Is This Required, I.E., Aren't They Handled By The Backend?
Honza, can you explain what needs to be done?
AFAIK you do not initialize some fields correctly but Honza knows more...
It may well be also problem present on hammer branch only. The problem is that profile code uses trees to expand data structures passed to GCC runtime. The language frontend needs to initialize all the types that gcov code expects to be on the place. Recently I moved gcov from c type nodes into it's own nodes to avoid problems with fortran frontend not initializing things like unsigned_long_node but with pascal frontend it still seem to be crashing. I didn't investigated what exactly is missing.
We call build_common_tree_nodes which initializes long_unsigned_type_node etc.
If anything more is needed, it shouldn't be difficult to add it. I'd only have to know what. Is this documented anywhere?
Frank