-fnon-call-exceptions + -fprofile-arcs on x86
Eric Botcazou
ebotcazou@act-europe.fr
Mon May 10 18:05:00 GMT 2004
> 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
More information about the Gcc
mailing list