public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Jeff Law <law@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>,
	 Romain Geissler <romain.geissler@amadeus.com>,
	 gcc@gcc.gnu.org
Subject: Re: Can LTO minor version be updated in backward compatible way ?
Date: Thu, 18 Jul 2019 16:13:00 -0000	[thread overview]
Message-ID: <87ftn3z5fz.fsf@oldenburg2.str.redhat.com> (raw)
In-Reply-To: <71c86eab-4178-e841-f968-b4425f851dd3@redhat.com>

* Jeff Law:

> On 7/17/19 11:29 AM, Andi Kleen wrote:
>> Romain Geissler <romain.geissler@amadeus.com> writes:
>>>
>>> I have no idea of the LTO format and if indeed it can easily be updated
>>> in a backward compatible way. But I would say it would be nice if it
>>> could, and would allow adoption for projects spread on many teams
>>> depending on each others and unable to re-build everything at each
>>> toolchain update.
>> 
>> Right now any change to an compiler option breaks the LTO format
>> in subtle ways. In fact even the minor changes that are currently
>> done are not frequent enough to catch all such cases.
>> 
>> So it's unlikely to really work.

> Right and stable LTO bytecode really isn't on the radar at this time.

Maybe it's better to serialize the non-preprocessed source code instead.
It would need some (hash-based?) deduplication.  For #include
directives, the hash of the file would be captured for reproducibility.
Then if the initial #defines are known, the source code after processing
can be reproduced exactly.

Compressed source code is a surprisingly compact representation of a
program, usually smaller than any (compressed) IR dump.

Thanks,
Florian

  reply	other threads:[~2019-07-18 16:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-17 14:12 Romain Geissler
2019-07-17 16:15 ` Michael Matz
2019-07-17 17:30 ` Andi Kleen
2019-07-17 18:10   ` Jeff Law
2019-07-18 16:13     ` Florian Weimer [this message]
2019-07-18 23:00       ` [EXT] " Romain Geissler
2019-07-19  8:30         ` Florian Weimer
2019-07-22  7:52           ` Richard Biener
2019-07-22 11:15             ` Florian Weimer
2019-07-22 11:20               ` Richard Biener
2019-07-22 14:25     ` Martin Liška
2019-07-22 14:31       ` Jeff Law
2019-07-23  8:49         ` Martin Liška
2019-07-23 13:17           ` Jeff Law
2019-07-22 17:57     ` Jeffrey Walton
2019-07-18 11:40   ` Richard Biener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ftn3z5fz.fsf@oldenburg2.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=ak@linux.intel.com \
    --cc=gcc@gcc.gnu.org \
    --cc=law@redhat.com \
    --cc=romain.geissler@amadeus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).