Index: compiler-rt/trunk/lib/profile/GCDAProfiling.c =================================================================== --- compiler-rt/trunk/lib/profile/GCDAProfiling.c +++ compiler-rt/trunk/lib/profile/GCDAProfiling.c @@ -459,6 +459,7 @@ unmap_file(); } + fflush(output_file); lprofUnlockFd(fd); fclose(output_file); output_file = NULL;