public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61360] [5 Regression] ICE: in lra_update_insn_recog_data, at lra.c:1363 with -mtune=bdver4
Date: Sat, 06 Sep 2014 12:22:00 -0000	[thread overview]
Message-ID: <bug-61360-4-cZGX8YoEaQ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-61360-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61360

--- Comment #11 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to GGanesh from comment #9)
> Patch that fixes this issue has been submitted 
> https://gcc.gnu.org/ml/gcc-patches/2014-08/msg02179.html
> 
> The idea is to prohibit changes to the "enabled" attribute during lra and
> reload pass.

Here's a small testcase that still ICE's even with your patch applied:

 % cat utils.i
int a, b, c, e, f, g, h;
long *d;
__attribute__((cold)) void fn1() {
  int i = g | 1;
  for (; g; h++) {
    for (; a; e++) d[0] = c;
    if (0.002 * i) break;
    for (; b; f++) d[h] = 0;
  }
}

 % gcc -march=amdfam10 -O2 -c utils.i
utils.i: In function ‘fn1’:
utils.i:10:1: internal compiler error: in lra_update_insn_recog_data, at
lra.c:1223
 }
 ^
0x8ddb6c lra_update_insn_recog_data(rtx_insn*)
        ../../gcc/gcc/lra.c:1222
0x8f4595 eliminate_regs_in_insn
        ../../gcc/gcc/lra-eliminations.c:1077
0x8f4595 process_insn_for_elimination
        ../../gcc/gcc/lra-eliminations.c:1344
0x8f4595 lra_eliminate(bool, bool)
        ../../gcc/gcc/lra-eliminations.c:1408
0x8df81e lra(_IO_FILE*)
        ../../gcc/gcc/lra.c:2278
0x89ddf6 do_reload
        ../../gcc/gcc/ira.c:5311
0x89ddf6 execute
        ../../gcc/gcc/ira.c:5470
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-461355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 06 13:11:08 2014
Return-Path: <gcc-bugs-return-461355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27679 invoked by alias); 6 Sep 2014 13:11:07 -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 27609 invoked by uid 48); 6 Sep 2014 13:11:00 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/63194] New: [4.9/5 Regression] ICE in maybe_explain_implicit_delete, at cp/method.c:1552
Date: Sat, 06 Sep 2014 13:11: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: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
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 cc
Message-ID: <bug-63194-4@http.gcc.gnu.org/bugzilla/>
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: 2014-09/txt/msg01189.txt.bz2
Content-length: 3327

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63194

            Bug ID: 63194
           Summary: [4.9/5 Regression] ICE in
                    maybe_explain_implicit_delete, at cp/method.c:1552
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
                CC: jason at gcc dot gnu.org

Reduced from a huge boost testcase:

markus@x4 tmp % cat horzcollisionbar.ii
template <int>
class A {
 public:
  A() noexcept(noexcept(0)) = default;
};
class B {
  A<0> m_points;
};
void fn1(A<0>, A<0>) { B(); }

markus@x4 tmp % g++ -c -std=c++11 horzcollisionbar.ii
horzcollisionbar.ii: In function ‘void fn1(A<0>, A<0>)’:
horzcollisionbar.ii:9:26: error: use of deleted function ‘B::B()’
 void fn1(A<0>, A<0>) { B(); }
                          ^
horzcollisionbar.ii:6:7: note: ‘B::B()’ is implicitly deleted because the
default definition would be ill-formed:
 class B {
       ^
horzcollisionbar.ii:6:7: error: use of deleted function ‘A<<anonymous> >::A()
[with int <anonymous> = 0]’
horzcollisionbar.ii:4:3: internal compiler error: in
maybe_explain_implicit_delete, at cp/method.c:1552
   A() noexcept(noexcept(0)) = default;
   ^
0x6ea0d8 maybe_explain_implicit_delete(tree_node*)
        ../../gcc/gcc/cp/method.c:1552
0x653df0 mark_used(tree_node*, int)
        ../../gcc/gcc/cp/decl2.c:4877
0x57233e build_over_call
        ../../gcc/gcc/cp/call.c:7019
0x57df65 build_new_method_call_1
        ../../gcc/gcc/cp/call.c:8098
0x57df65 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
        ../../gcc/gcc/cp/call.c:8168
0x6e00ef locate_fn_flags
        ../../gcc/gcc/cp/method.c:906
0x6e2eca walk_field_subobs
        ../../gcc/gcc/cp/method.c:1193
0x6e3a34 synthesized_method_walk
        ../../gcc/gcc/cp/method.c:1435
0x6e9f7f maybe_explain_implicit_delete(tree_node*)
        ../../gcc/gcc/cp/method.c:1541
0x653df0 mark_used(tree_node*, int)
        ../../gcc/gcc/cp/decl2.c:4877
0x572cc2 build_over_call
        ../../gcc/gcc/cp/call.c:7381
0x57df65 build_new_method_call_1
        ../../gcc/gcc/cp/call.c:8098
0x57df65 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
        ../../gcc/gcc/cp/call.c:8168
0x57eed9 build_special_member_call(tree_node*, tree_node*, vec<tree_node*,
va_gc, vl_embed>**, tree_node*, int, int)
        ../../gcc/gcc/cp/call.c:7712
0x6d83ab build_value_init(tree_node*, int)
        ../../gcc/gcc/cp/init.c:350
0x620e74 build_functional_cast(tree_node*, tree_node*, int)
        ../../gcc/gcc/cp/typeck2.c:1928
0x687643 cp_parser_functional_cast
        ../../gcc/gcc/cp/parser.c:23581
0x68118b cp_parser_postfix_expression
        ../../gcc/gcc/cp/parser.c:5936
0x683e73 cp_parser_unary_expression
        ../../gcc/gcc/cp/parser.c:7287
0x684c38 cp_parser_binary_expression
        ../../gcc/gcc/cp/parser.c:8030
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

Started with r203989.
>From gcc-bugs-return-461356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 06 13:20:39 2014
Return-Path: <gcc-bugs-return-461356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31299 invoked by alias); 6 Sep 2014 13:20:39 -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 31268 invoked by uid 48); 6 Sep 2014 13:20:35 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/63194] [5 Regression] ICE in maybe_explain_implicit_delete, at cp/method.c:1552
Date: Sat, 06 Sep 2014 13:20: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
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: cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-63194-4-BquPSpkg4P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63194-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63194-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: 2014-09/txt/msg01190.txt.bz2
Content-length: 716

https://gcc.gnu.org/bugzilla/show_bug.cgi?idc194

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.8.3, 4.9.0
            Summary|[4.9/5 Regression] ICE in   |[5 Regression] ICE in
                   |maybe_explain_implicit_dele |maybe_explain_implicit_dele
                   |te, at cp/method.c:1552     |te, at cp/method.c:1552
      Known to fail|                            |5.0

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Actually gcc-4.9 compiles the testcase without any warning.


  parent reply	other threads:[~2014-09-06 12:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-29 18:14 [Bug target/61360] New: [4.10 " zsojka at seznam dot cz
2014-06-02  7:59 ` [Bug target/61360] " rguenth at gcc dot gnu.org
2014-06-13 10:25 ` trippels at gcc dot gnu.org
2014-06-13 17:15 ` trippels at gcc dot gnu.org
2014-06-14 10:27 ` rsandifo at gcc dot gnu.org
2014-06-26 10:45 ` Ganesh.Gopalasubramanian at amd dot com
2014-06-26 17:04 ` zsojka at seznam dot cz
2014-07-07 13:23 ` rguenth at gcc dot gnu.org
2014-07-10 14:24 ` trippels at gcc dot gnu.org
2014-07-17  6:32 ` trippels at gcc dot gnu.org
2014-08-20  7:47 ` [Bug target/61360] [5 " dcb314 at hotmail dot com
2014-08-26  6:48 ` Ganesh.Gopalasubramanian at amd dot com
2014-08-26  7:25 ` trippels at gcc dot gnu.org
2014-09-06 12:22 ` trippels at gcc dot gnu.org [this message]
2014-09-15 17:22 ` ubizjak at gmail dot com
2014-09-18 15:41 ` vmakarov at gcc dot gnu.org
2014-09-18 15:57 ` vmakarov at gcc dot gnu.org
2014-12-15 17:48 ` jakub at gcc dot gnu.org
2014-12-15 18:49 ` ubizjak at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-61360-4-cZGX8YoEaQ@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).