From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69407 invoked by alias); 31 Mar 2015 14:19:14 -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 69362 invoked by uid 48); 31 Mar 2015 14:19:11 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65554] ICE: verify_gimple failed Date: Tue, 31 Mar 2015 14:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-03/txt/msg03535.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65554 --- Comment #7 from Marek Polacek --- (In reply to Marek Polacek from comment #6) > --- a/gcc/cp/call.c > +++ b/gcc/cp/call.c > @@ -6366,7 +6366,8 @@ convert_like_real (conversion *convs, tree expr, tr= ee > fn, int argnum, > field =3D next_initializable_field (TYPE_FIELDS (totype)); > CONSTRUCTOR_APPEND_ELT (vec, field, array); > field =3D next_initializable_field (DECL_CHAIN (field)); > - CONSTRUCTOR_APPEND_ELT (vec, field, size_int (len)); > + CONSTRUCTOR_APPEND_ELT (vec, field, > + build_int_cst (TREE_TYPE (field), len)); > new_ctor =3D build_constructor (totype, vec); > return get_target_expr_sfinae (new_ctor, complain); > } Not really, it doesn't fix the unreduced testcase. >>From gcc-bugs-return-482392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 31 14:20:33 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70642 invoked by alias); 31 Mar 2015 14:20:33 -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 70576 invoked by uid 48); 31 Mar 2015 14:20:29 -0000 From: "ossman at cendio dot se" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/42159] unwinding issues on darwin Date: Tue, 31 Mar 2015 15:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.4.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ossman at cendio dot se X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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-03/txt/msg03536.txt.bz2 Content-length: 1477 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159 Pierre Ossman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ossman at cendio dot se --- Comment #28 from Pierre Ossman --- I'd like to reopen this issue as we are still seeing this with as new gcc as 4.8.4 (we've been unable to build anything newer). Unfortunately I do not seem to have the access rights to reopen the bug. Help? We've primarily been using 4.6.4 but we also did a test build with 4.8.4 to see if a newer gcc solved the issue. Unfortunately the problem is the same, with the same stack trace. We have however found that the problem seems to be an incompatibility between OS X's unwinder and gcc's (something we found various other gcc bugs and mailing lists discussions on). Or normal way of doing things is to statically link libstdc++ and libgcc_eh. This results in crashing programs. If we inject libSystem before libgcc_eh however, we get the system unwind routines and the program works fine. This is not quite the same as the previous cases mentioned on this bug, but the dumps show that a custom libgcc_s is being used so it should be equivalent. Not sure what the proper fix is but our plan is to bastardise gcc a bit and remove the unwinding routines to make sure the system ones are always used.