-fnon-call-exceptions + -fprofile-arcs on x86

Zdenek Dvorak rakdver@atrey.karlin.mff.cuni.cz
Mon May 10 20:19:00 GMT 2004


Hello,

> >Now to the question: is this fixable in profile.c?
>  I don't see how, one of the two edges must be counted.  The exceptional
> edge cannot be, because there's no actual flow there.  So profile must
> add the incrementing code on the fall through edge.

using safe_insert_insn_on_edge instead of insert_insn_on_edge in
instrument_edges would be a possibility (although of course it is
useless now that the problem no longer occurs).

Zdenek



More information about the Gcc mailing list