public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59647] New: [4.8] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597
@ 2013-12-31  2:12 ppluzhnikov at google dot com
  2013-12-31 13:48 ` [Bug rtl-optimization/59647] [4.8 Regression] " jakub at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ppluzhnikov at google dot com @ 2013-12-31  2:12 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 4478 bytes --]

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

            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 == 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 = 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=sse -O2 
t.ii: In function ‘void fn2(A&)’:
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: <gcc-bugs-return-438815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
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: <bug-56066-4-umUbipqihG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56066-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56066-4@http.gcc.gnu.org/bugzilla/>
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?idV066

Solomon Gibbs <solomon.gibbs.lists at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29236|0                           |1
        is obsolete|                            |

--- Comment #4 from Solomon Gibbs <solomon.gibbs.lists at gmail dot com> ---
Created attachment 31545
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id1545&actioníit
Shared header, C99 and C++ units. With workaround.


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

* [Bug rtl-optimization/59647] [4.8 Regression] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597
  2013-12-31  2:12 [Bug c++/59647] New: [4.8] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597 ppluzhnikov at google dot com
@ 2013-12-31 13:48 ` jakub at gcc dot gnu.org
  2013-12-31 23:48 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-12-31 13:48 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
          Component|c++                         |rtl-optimization
            Version|unknown                     |4.8.2
   Target Milestone|---                         |4.8.3
            Summary|[4.8] ICE in                |[4.8 Regression] ICE in
                   |simplify_const_unary_operat |simplify_const_unary_operat
                   |ion, at simplify-rtx.c:1597 |ion, at simplify-rtx.c:1597

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r186147, went away with r202345, though given that the latter is a
GIMPLE pass change, I'd bet it just went latent on the trunk.


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

* [Bug rtl-optimization/59647] [4.8 Regression] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597
  2013-12-31  2:12 [Bug c++/59647] New: [4.8] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597 ppluzhnikov at google dot com
  2013-12-31 13:48 ` [Bug rtl-optimization/59647] [4.8 Regression] " jakub at gcc dot gnu.org
@ 2013-12-31 23:48 ` jakub at gcc dot gnu.org
  2013-12-31 23:52 ` jakub at gcc dot gnu.org
  2014-01-01  0:30 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-12-31 23:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Dec 31 23:48:36 2013
New Revision: 206267

URL: http://gcc.gnu.org/viewcvs?rev=206267&root=gcc&view=rev
Log:
    PR rtl-optimization/59647
    * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
    new_rtx into UNSIGNED_FLOAT rtxes.

    * g++.dg/opt/pr59647.C: New test.

Added:
    trunk/gcc/ChangeLog-2013
    trunk/gcc/testsuite/ChangeLog-2013
    trunk/gcc/testsuite/g++.dg/opt/pr59647.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cse.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug rtl-optimization/59647] [4.8 Regression] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597
  2013-12-31  2:12 [Bug c++/59647] New: [4.8] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597 ppluzhnikov at google dot com
  2013-12-31 13:48 ` [Bug rtl-optimization/59647] [4.8 Regression] " jakub at gcc dot gnu.org
  2013-12-31 23:48 ` jakub at gcc dot gnu.org
@ 2013-12-31 23:52 ` jakub at gcc dot gnu.org
  2014-01-01  0:30 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-12-31 23:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Dec 31 23:52:11 2013
New Revision: 206268

URL: http://gcc.gnu.org/viewcvs?rev=206268&root=gcc&view=rev
Log:
    PR rtl-optimization/59647
    * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
    new_rtx into UNSIGNED_FLOAT rtxes.

    * g++.dg/opt/pr59647.C: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/opt/pr59647.C
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/cse.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


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

* [Bug rtl-optimization/59647] [4.8 Regression] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597
  2013-12-31  2:12 [Bug c++/59647] New: [4.8] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597 ppluzhnikov at google dot com
                   ` (2 preceding siblings ...)
  2013-12-31 23:52 ` jakub at gcc dot gnu.org
@ 2014-01-01  0:30 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-01  0:30 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2014-01-01  0:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-31  2:12 [Bug c++/59647] New: [4.8] ICE in simplify_const_unary_operation, at simplify-rtx.c:1597 ppluzhnikov at google dot com
2013-12-31 13:48 ` [Bug rtl-optimization/59647] [4.8 Regression] " jakub at gcc dot gnu.org
2013-12-31 23:48 ` jakub at gcc dot gnu.org
2013-12-31 23:52 ` jakub at gcc dot gnu.org
2014-01-01  0:30 ` jakub at gcc dot gnu.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).