This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fnon-call-exceptions + -fprofile-arcs on x86
> 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.
That was my opinion too.
> I guess what needs to happen is that (when -fprofile-arcs is on) cc0 is
> clobbered at the end of every block.
RTH's fix aims to prevent the middle-end from generating compare insns that
may trap if flag_non_call_exceptions is enabled. I think that's the best we
can do.
Thanks for your feedback.
--
Eric Botcazou