From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7888 invoked by alias); 4 Feb 2015 09:33:28 -0000 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 Received: (qmail 7841 invoked by uid 48); 4 Feb 2015 09:33:23 -0000 From: "timo.teras at iki dot fi" To: gcc-bugs@gcc.gnu.org Subject: [Bug regression/64812] [4.9 regression] x86 LibreOffice Build failure: undefined reference to acquire Date: Wed, 04 Feb 2015 09:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: regression X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: timo.teras at iki dot fi X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg00302.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64812 Timo Ter=C3=A4s changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timo.teras at iki dot fi --- Comment #3 from Timo Ter=C3=A4s --- I can reproduce this, but unfortunately I don't have minimalistic test case yet. As a workaround removing -fvisibility-inlines-hidden from the build flags, makes things work in the libreoffice. What is involved / happening is: The non-virtual thunks are in a DSO, but marked hidden. This is caused by -fvisibility-inlines-hidden. The ::acquire members are virtual, but with in= line implementation (no inline marking / attribute though). The class itself is marked __attribute__((visibility("default"))). It appears that the places getting these unresolved symbols are trying to c= all external symbol, even though it's inline implementation. Apparently optimization flags, code context affects when this happens. The symptoms sounds very much similar to what was in llvm: http://llvm.org/bugs/show_bug.cgi?id=3D12255 >>From gcc-bugs-return-475970-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 04 09:35:29 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9548 invoked by alias); 4 Feb 2015 09:35:29 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9478 invoked by uid 48); 4 Feb 2015 09:35:23 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64932] [4.9/5.0 Regression] ICE in gfc_conv_descriptor_data_get for generated finalizer Date: Wed, 04 Feb 2015 09:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg00303.txt.bz2 Content-length: 886 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64932 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.9.3 Summary|[5.0] ICE on module end, |[4.9/5.0 Regression] ICE in |gfc_conv_descriptor_data_ge |gfc_conv_descriptor_data_ge |t |t for generated finalizer --- Comment #2 from Tobias Burnus --- The problem seems to occur in the finalizer, i.e. __final_coo_graphs_Coo_graph for the component ref (ptr2 is of type coo_graph): ptr2->edges which is an array_type - but with fixed bounds; it fails in gfc_conv_descriptor_data_get for line 157 gcc_assert (GFC_DESCRIPTOR_TYPE_P (type));