diff options
author | Martin Liska <mliska@suse.cz> | 2021-04-20 16:56:07 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-05-10 09:13:46 +0200 |
commit | e3a682f4197f9f39808febfd1862e722d7675d34 (patch) | |
tree | f4b4f7c6d8d8a37e96e0f2bde7e6f511619567ed /gcc/lto-streamer.h | |
parent | 79a27f32df8eab0add722f75332f78fe20d94da3 (diff) | |
download | gcc-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 'gcc/lto-streamer.h')
-rw-r--r-- | gcc/lto-streamer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index 5c7cd84..5f0335e 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see #include "plugin-api.h" #include "gcov-io.h" #include "diagnostic.h" +#include "version.h" /* The encoding for a function consists of the following sections: @@ -120,7 +121,7 @@ along with GCC; see the file COPYING3. If not see String are represented in the table as pairs, a length in ULEB128 form followed by the data for the string. */ -#define LTO_major_version 9 +#define LTO_major_version GCC_major_version #define LTO_minor_version 0 typedef unsigned char lto_decl_flags_t; |