public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/41526] gimple bytecode streams are not portable between different hosts
       [not found] <bug-41526-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-26  2:07 ` pinskia at gcc dot gnu.org
  2022-05-18 12:43 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-26  2:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41526

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.f.starke at freenet dot de

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 69394 has been marked as a duplicate of this bug. ***

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

* [Bug lto/41526] gimple bytecode streams are not portable between different hosts
       [not found] <bug-41526-4@http.gcc.gnu.org/bugzilla/>
  2021-12-26  2:07 ` [Bug lto/41526] gimple bytecode streams are not portable between different hosts pinskia at gcc dot gnu.org
@ 2022-05-18 12:43 ` rguenth at gcc dot gnu.org
  2022-07-04  8:41 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-18 12:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41526

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |richard at weickelt dot de

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 105641 has been marked as a duplicate of this bug. ***

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

* [Bug lto/41526] gimple bytecode streams are not portable between different hosts
       [not found] <bug-41526-4@http.gcc.gnu.org/bugzilla/>
  2021-12-26  2:07 ` [Bug lto/41526] gimple bytecode streams are not portable between different hosts pinskia at gcc dot gnu.org
  2022-05-18 12:43 ` rguenth at gcc dot gnu.org
@ 2022-07-04  8:41 ` rguenth at gcc dot gnu.org
  2022-07-04  9:03 ` rguenth at gcc dot gnu.org
  2022-07-04  9:28 ` richard at weickelt dot de
  4 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-07-04  8:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41526

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clyon at gcc dot gnu.org

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 106177 has been marked as a duplicate of this bug. ***

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

* [Bug lto/41526] gimple bytecode streams are not portable between different hosts
       [not found] <bug-41526-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2022-07-04  8:41 ` rguenth at gcc dot gnu.org
@ 2022-07-04  9:03 ` rguenth at gcc dot gnu.org
  2022-07-04  9:28 ` richard at weickelt dot de
  4 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-07-04  9:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41526

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2010-09-01 19:29:58         |2022-7-4

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #9)
> *** Bug 106177 has been marked as a duplicate of this bug. ***

The float encoding issue was re-confirmed here.

I'm not sure if we meanwhile have a per-file LTO header but it might be
nice to put enough info there to give a reasonable error.  As said
endianess is a hard issue to fix, likewise int/long/pointer size differences.
The float encoding part could be fixed in theory.

target specific issues with host dependences might also exist (host
dependent flags might be streamed?).

Regression testing is another obvious problem here.

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

* [Bug lto/41526] gimple bytecode streams are not portable between different hosts
       [not found] <bug-41526-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2022-07-04  9:03 ` rguenth at gcc dot gnu.org
@ 2022-07-04  9:28 ` richard at weickelt dot de
  4 siblings, 0 replies; 8+ messages in thread
From: richard at weickelt dot de @ 2022-07-04  9:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41526

--- Comment #11 from Richard Weickelt <richard at weickelt dot de> ---
I would prefer a warning over an error. Cross-compiling for arm-none-eabi does
work unless floating point arithmetic is involved as reported in bug 105641,
but I understand that this might be a special case.

My use-case is that vendor A provides a binary blob of a library to vendor B.
Both A and B ensure that they use the same toolchain version, but the
developers involved use different host operating systems. LTO is a valuable
feature for us because it shrinks our binaries by 25%.

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

* [Bug lto/41526] gimple bytecode streams are not portable between different hosts
  2009-09-30 19:37 [Bug lto/41526] New: " dnovillo at gcc dot gnu dot org
  2009-09-30 19:50 ` [Bug lto/41526] " dnovillo at gcc dot gnu dot org
  2009-09-30 20:17 ` dnovillo at gcc dot gnu dot org
@ 2010-09-01 19:30 ` jsm28 at gcc dot gnu dot org
  2 siblings, 0 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2010-09-01 19:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jsm28 at gcc dot gnu dot org  2010-09-01 19:29 -------
The handling of target options (the patch for bug 45475) is another
host-dependency in the bytecode stream.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-09-01 19:29:58
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41526


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

* [Bug lto/41526] gimple bytecode streams are not portable between different hosts
  2009-09-30 19:37 [Bug lto/41526] New: " dnovillo at gcc dot gnu dot org
  2009-09-30 19:50 ` [Bug lto/41526] " dnovillo at gcc dot gnu dot org
@ 2009-09-30 20:17 ` dnovillo at gcc dot gnu dot org
  2010-09-01 19:30 ` jsm28 at gcc dot gnu dot org
  2 siblings, 0 replies; 8+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2009-09-30 20:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dnovillo at gcc dot gnu dot org  2009-09-30 20:17 -------
More portability concerns from

http://gcc.gnu.org/ml/gcc-patches/2009-09/msg02157.html

> +/* This needs to be included after config.h.  Otherwise, _GNU_SOURCE will not
> +   be defined in time to set __USE_GNU in the system headers, and strsignal
> +   will not be declared.  */
> +#include <sys/mman.h>

mmap and <sys/mman.h> are also not portable to all supported hosts (e.g. 
MinGW).  There should be configure tests and a suitable fallback.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41526


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

* [Bug lto/41526] gimple bytecode streams are not portable between different hosts
  2009-09-30 19:37 [Bug lto/41526] New: " dnovillo at gcc dot gnu dot org
@ 2009-09-30 19:50 ` dnovillo at gcc dot gnu dot org
  2009-09-30 20:17 ` dnovillo at gcc dot gnu dot org
  2010-09-01 19:30 ` jsm28 at gcc dot gnu dot org
  2 siblings, 0 replies; 8+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2009-09-30 19:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dnovillo at gcc dot gnu dot org  2009-09-30 19:50 -------
Other portability concerns:

http://gcc.gnu.org/ml/gcc-patches/2009-09/msg02157.html

> The host portability issue with __attribute__ ((visibility ("hidden"))) 
> has already been noted.  I suggest conditioning the attributes on defined 
> (__GNUC__) && defined (__ELF__) - GCC should support the attribute on ELF 
> hosts, but LTO should also work for ELF targets with non-ELF hosts.

and

http://gcc.gnu.org/ml/gcc-patches/2009-09/msg02190.html

> > The host portability issue with __attribute__ ((visibility ("hidden"))) 
> > has already been noted.  I suggest conditioning the attributes on defined 
> > (__GNUC__) && defined (__ELF__) - GCC should support the attribute on ELF 
> > hosts, but LTO should also work for ELF targets with non-ELF hosts.
>
> Unfortunately, neither is true: older versions of GCC on Solaris 2 didn't
> support hidden with the vendor linker.  This was only fixed in GCC 4.4.0
> for Solaris 9 and up.  And IRIX 6 doesn't support hidden at all: the vendor
> linker knows nothing about it; maybe it can be made to work by using GNU
> ld, but I'm unsure if rld (runtime linker) support is needed as well.
> 
> Cf. PR bootstrap/39020 and bootstrap/39021.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41526


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

end of thread, other threads:[~2022-07-04  9:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41526-4@http.gcc.gnu.org/bugzilla/>
2021-12-26  2:07 ` [Bug lto/41526] gimple bytecode streams are not portable between different hosts pinskia at gcc dot gnu.org
2022-05-18 12:43 ` rguenth at gcc dot gnu.org
2022-07-04  8:41 ` rguenth at gcc dot gnu.org
2022-07-04  9:03 ` rguenth at gcc dot gnu.org
2022-07-04  9:28 ` richard at weickelt dot de
2009-09-30 19:37 [Bug lto/41526] New: " dnovillo at gcc dot gnu dot org
2009-09-30 19:50 ` [Bug lto/41526] " dnovillo at gcc dot gnu dot org
2009-09-30 20:17 ` dnovillo at gcc dot gnu dot org
2010-09-01 19:30 ` jsm28 at gcc dot gnu dot org

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).