From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1631 invoked by alias); 30 Sep 2009 19:50:33 -0000 Received: (qmail 1190 invoked by uid 48); 30 Sep 2009 19:50:18 -0000 Date: Wed, 30 Sep 2009 19:50:00 -0000 Message-ID: <20090930195018.1189.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug lto/41526] gimple bytecode streams are not portable between different hosts In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dnovillo at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg02785.txt.bz2 ------- 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