From: H.J. Lu Date: Wed, 11 May 2005 16:08:27 +0000 (+0000) Subject: libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation is needed. X-Git-Tag: misc/cutover-cvs2svn~3261 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ca48b3e7251f931b0a8af263d31043078ffb701;p=thirdparty%2Fgcc.git libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation is needed. 2005-05-11 H.J. Lu * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation is needed. From-SVN: r99584 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0af9816a219..e61880197948 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-05-11 H.J. Lu + + * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation + is needed. + 2005-05-11 Kazu Hirata * fold-const.c, libgcov.c: Fix comment typos. diff --git a/gcc/libgcov.c b/gcc/libgcov.c index 6a41097afb0c..3731a9ec9b79 100644 --- a/gcc/libgcov.c +++ b/gcc/libgcov.c @@ -212,6 +212,8 @@ gcov_exit (void) if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) prefix_length--; } + else + prefix_length = 0; /* Allocate and initialize the filename scratch space. */ gi_filename = alloca (prefix_length + gcov_max_filename + 1);