public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Bump LTO_major_version to 11.
@ 2021-04-20  9:57 Martin Liška
  2021-04-20 12:46 ` Richard Biener
  0 siblings, 1 reply; 23+ messages in thread
From: Martin Liška @ 2021-04-20  9:57 UTC (permalink / raw)
  To: gcc-patches; +Cc: Jakub Jelinek, Richard Biener, Jan Hubicka

It seems we bumped LTO_major_version last time 2 years ago.

Right now, the following is seen when one links a GCC 10.2.x LTO object file:
$ gcc a.o

lto1: fatal error: bytecode stream in file ‘a.o’ generated with LTO version 9.2 instead of the expected 9.0


I suggest bumping LTO_major_version for releases/gcc-11 branch.
Can we please align it with a GCC release (version 11)? For the future, if e.g. GCC 12 consumes LTO
bytecode from GCC 11, we can leave LTO_major_version. Once e.g. GCC 13 needs bumping,
I would then change it to 13.

What do you think about the suggested scheme?
Ready for gcc-11 branch?
Martin

gcc/ChangeLog:

	* lto-streamer.h (LTO_major_version): Bump to 11.
---
 gcc/lto-streamer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h
index 5c7cd84d46f..7a7be80dab8 100644
--- a/gcc/lto-streamer.h
+++ b/gcc/lto-streamer.h
@@ -120,7 +120,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 11
 #define LTO_minor_version 0
 
 typedef unsigned char	lto_decl_flags_t;
-- 
2.31.1


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2021-05-11 13:40 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20  9:57 [PATCH] Bump LTO_major_version to 11 Martin Liška
2021-04-20 12:46 ` Richard Biener
2021-04-20 18:49   ` Martin Liška
2021-04-23  7:28     ` Richard Biener
2021-04-23  7:59       ` Martin Liška
2021-04-23  9:37         ` Richard Biener
2021-04-23  9:51           ` Jan Hubicka
2021-04-23 10:59             ` Richard Biener
2021-04-23 11:37               ` Martin Liška
2021-05-11  6:46                 ` Martin Liška
2021-05-11  7:49                   ` Richard Biener
2021-05-11 13:33                     ` Martin Liška
2021-05-11 13:38                       ` Jakub Jelinek
2021-05-11 13:40                         ` Richard Biener
2021-05-10  8:51     ` Eric Botcazou
2021-05-10 11:40       ` Bernd Edlinger
2021-05-10 14:59         ` Eric Botcazou
2021-05-10  9:01     ` Eric Botcazou
2021-05-10  9:08       ` Martin Liška
2021-05-10 15:09         ` Eric Botcazou
2021-05-10 15:59         ` Eric Botcazou
2021-05-10 19:11           ` Martin Liška
2021-05-10 20:06             ` Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).