From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21863 invoked by alias); 31 Dec 2013 02:12:25 -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 21840 invoked by uid 48); 31 Dec 2013 02:12:20 -0000 From: "ppluzhnikov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59647] New: [4.8] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597 Date: Tue, 31 Dec 2013 02:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppluzhnikov at google dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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: 2013-12/txt/msg02469.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59647 Bug ID: 59647 Summary: [4.8] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppluzhnikov at google dot com Google ref: b/12262120 4.8 is broken, trunk does not fail (not sure whether the problem is fixed on trunk, or merely masked by other changes). void fn1i (int); void fn1 (); struct A { int m_fn1 () const { if (this->_M_impl._M_finish =3D=3D 0) return 1; return 0; } unsigned m_fn2 () { if (!this->m_fn1 ()) fn1 (); return this->_M_impl._M_finish; } double operator[] (int); struct B { int _M_finish; }; B _M_impl; }; void fn2 (A & p1) { unsigned b =3D p1.m_fn2 (); fn1i (b - 1 - p1[p1.m_fn2 () - 1]); } gcc --version gcc (GCC) 4.8.3 20131230 (prerelease) Configured for x86_64. gcc -c t.ii -m32 -fno-tree-vrp -mfpmath=3Dsse -O2=20 t.ii: In function =E2=80=98void fn2(A&)=E2=80=99: t.ii:30:1: internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1597 } ^ 0x891d5a simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) ../../gcc/simplify-rtx.c:1597 0x888b2a simplify_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) ../../gcc/simplify-rtx.c:796 0xbfcbd6 fold_rtx ../../gcc/cse.c:3287 0xc01fd1 canonicalize_insn ../../gcc/cse.c:4396 0xc01fd1 cse_insn ../../gcc/cse.c:4490 0xc038e3 cse_extended_basic_block ../../gcc/cse.c:6405 0xc038e3 cse_main ../../gcc/cse.c:6583 0xc03d06 rest_of_handle_cse ../../gcc/cse.c:7433 Please submit a full bug report, with preprocessed source if appropriate. >>From gcc-bugs-return-438815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Dec 31 04:40:26 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11945 invoked by alias); 31 Dec 2013 04:40:25 -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 11925 invoked by uid 48); 31 Dec 2013 04:40:21 -0000 From: "solomon.gibbs.lists at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56066] g++ generates strong symbols conflicting with C99 extern inline code on Windows Date: Tue, 31 Dec 2013 04:40: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: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: solomon.gibbs.lists at gmail dot com 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: attachments.isobsolete attachments.created 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: 2013-12/txt/msg02470.txt.bz2 Content-length: 572 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56066 Solomon Gibbs changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #29236|0 |1 is obsolete| | --- Comment #4 from Solomon Gibbs --- Created attachment 31545 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31545&action=edit Shared header, C99 and C++ units. With workaround.