aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-04-20 16:56:07 +0200
committerMartin Liska <mliska@suse.cz>2021-05-10 09:13:46 +0200
commite3a682f4197f9f39808febfd1862e722d7675d34 (patch)
treef4b4f7c6d8d8a37e96e0f2bde7e6f511619567ed /libgcc
parent79a27f32df8eab0add722f75332f78fe20d94da3 (diff)
downloadgcc-e3a682f4197f9f39808febfd1862e722d7675d34.zip
gcc-e3a682f4197f9f39808febfd1862e722d7675d34.tar.gz
gcc-e3a682f4197f9f39808febfd1862e722d7675d34.tar.bz2
Use genversion to generate version.h.
c++tools/ChangeLog: * Makefile.in: Include also ../gcc folder. gcc/ChangeLog: * Makefile.in: Rename gcov-iov to genversion and depend on version.h (instead of gcov-iov.h). * gcov-io.h: Include version.h instread of gcov-iov.h. * gengtype-state.c (read_state_version): Likewise. * gcov-iov.c: Moved to... * genversion.c: ...here. * lto-streamer.h (LTO_major_version): Define it with GCC_major_version. * version.c: Removed. * version.h: Removed. libgcc/ChangeLog: * libgcov-driver.c (gcov_version): Use different name that does not clash with newly introduced macro.
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/libgcov-driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgcc/libgcov-driver.c b/libgcc/libgcov-driver.c
index faa2df4..cbdf2ca 100644
--- a/libgcc/libgcov-driver.c
+++ b/libgcc/libgcov-driver.c
@@ -201,7 +201,7 @@ gcov_version (struct gcov_info *ptr, gcov_unsigned_t version,
if (version != GCOV_VERSION)
{
char v[4], e[4];
- char version_string[128], expected_string[128];
+ char ver_string[128], expected_string[128];
GCOV_UNSIGNED2STRING (v, version);
GCOV_UNSIGNED2STRING (e, GCOV_VERSION);
@@ -210,7 +210,7 @@ gcov_version (struct gcov_info *ptr, gcov_unsigned_t version,
"got %s (%.4s)\n",
filename? filename : ptr->filename,
gcov_version_string (expected_string, e), e,
- gcov_version_string (version_string, v), v);
+ gcov_version_string (ver_string, v), v);
return 0;
}
return 1;