diff options
| author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-11 16:08:27 +0000 |
|---|---|---|
| committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-11 16:08:27 +0000 |
| commit | 6dda73e5cae79964b735b5fcb825a416ba98c07f (patch) | |
| tree | ac56316c85405f148abae7aa989cf7c32c2b95b1 | |
| parent | cd6506abac8cb8f9b204d754ca334d54f8e851ff (diff) | |
| download | ppe42-gcc-6dda73e5cae79964b735b5fcb825a416ba98c07f.tar.gz ppe42-gcc-6dda73e5cae79964b735b5fcb825a416ba98c07f.zip | |
2005-05-11 H.J. Lu <hongjiu.lu@intel.com>
* libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation
is needed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99584 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/libgcov.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0af9816a21..e6188019794 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-05-11 H.J. Lu <hongjiu.lu@intel.com> + + * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation + is needed. + 2005-05-11 Kazu Hirata <kazu@cs.umass.edu> * fold-const.c, libgcov.c: Fix comment typos. diff --git a/gcc/libgcov.c b/gcc/libgcov.c index 6a41097afb0..3731a9ec9b7 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); |

