mirror of git://gcc.gnu.org/git/gcc.git
re PR gcov-profile/47793 (Relative path in fprofile-use turns into absolute path)
2011-05-13 Martin Thuresson <martint@google.com> PR gcov-profile/47793 * libgcov.c (gcov_exit): Support relative profile paths. * doc/invoke.texi (-fprofile-dir): Update for above change. 2011-05-13 Martin Thuresson <martint@google.com> PR gcov-profile/47793 * gcc.dg/pr47793.c: New. From-SVN: r173735
This commit is contained in:
parent
b8a71aedd8
commit
9f47a24e79
|
@ -1,3 +1,9 @@
|
||||||
|
2011-05-13 Martin Thuresson <martint@google.com>
|
||||||
|
|
||||||
|
PR gcov-profile/47793
|
||||||
|
* libgcov.c (gcov_exit): Support relative profile paths.
|
||||||
|
* doc/invoke.texi (-fprofile-dir): Update for above change.
|
||||||
|
|
||||||
2011-05-13 Richard Guenther <rguenther@suse.de>
|
2011-05-13 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
* gimple.c (gimple_canonical_types_compatible_p): Do not use
|
* gimple.c (gimple_canonical_types_compatible_p): Do not use
|
||||||
|
@ -102,6 +108,7 @@
|
||||||
* configure.ac: Use AS_HELP_STRING throughout.
|
* configure.ac: Use AS_HELP_STRING throughout.
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
|
|
||||||
|
>>>>>>> .r173734
|
||||||
2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
|
2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
|
* config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
|
||||||
|
|
|
@ -7751,7 +7751,7 @@ Set the directory to search for the profile data files in to @var{path}.
|
||||||
This option affects only the profile data generated by
|
This option affects only the profile data generated by
|
||||||
@option{-fprofile-generate}, @option{-ftest-coverage}, @option{-fprofile-arcs}
|
@option{-fprofile-generate}, @option{-ftest-coverage}, @option{-fprofile-arcs}
|
||||||
and used by @option{-fprofile-use} and @option{-fbranch-probabilities}
|
and used by @option{-fprofile-use} and @option{-fbranch-probabilities}
|
||||||
and its related options.
|
and its related options. Both absolute and relative paths can be used.
|
||||||
By default, GCC will use the current directory as @var{path}, thus the
|
By default, GCC will use the current directory as @var{path}, thus the
|
||||||
profile data file will appear in the same directory as the object file.
|
profile data file will appear in the same directory as the object file.
|
||||||
|
|
||||||
|
|
|
@ -283,8 +283,9 @@ gcov_exit (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Update complete filename with stripped original. */
|
/* Update complete filename with stripped original. */
|
||||||
if (!IS_DIR_SEPARATOR (*fname) && !HAS_DRIVE_SPEC(fname))
|
if (prefix_length != 0 && !IS_DIR_SEPARATOR (*fname))
|
||||||
{
|
{
|
||||||
|
/* If prefix is given, add directory separator. */
|
||||||
strcpy (gi_filename_up, "/");
|
strcpy (gi_filename_up, "/");
|
||||||
strcpy (gi_filename_up + 1, fname);
|
strcpy (gi_filename_up + 1, fname);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2011-05-13 Martin Thuresson <martint@google.com>
|
||||||
|
|
||||||
|
PR gcov-profile/47793
|
||||||
|
* gcc.dg/pr47793.c: New.
|
||||||
|
|
||||||
2011-05-12 Jakub Jelinek <jakub@redhat.com>
|
2011-05-12 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR tree-optimization/48975
|
PR tree-optimization/48975
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
/* Bug pr47793: Allow relative paths in profile-generate. */
|
||||||
|
/* { dg-do run } */
|
||||||
|
/* { dg-options "-O -fprofile-generate=./" } */
|
||||||
|
/* { dg-final { scan-file pr47793.gcda "."} } */
|
||||||
|
|
||||||
|
int
|
||||||
|
main(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* { dg-final { cleanup-coverage-files } } */
|
Loading…
Reference in New Issue