------- Comment #15 from hubicka at gcc dot gnu dot org 2007-05-06 15:31 ------- The problem with NRV transformation is that it removes the return statement from default path and keeps it in the catch path making GCOV to properly output it as unexecuted. I tried to look into the NRV modify_expr withing return_expr but it is not the place to find the proper locator, looks like NRV itself needs to be updated.
Honza -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12076