public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
@ 2014-11-25  9:50 trippels at gcc dot gnu.org
  2014-11-25  9:52 ` [Bug ipa/64068] " rguenth at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-11-25  9:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64068
           Summary: [5 Regression] ICE: in remove_unreachable_nodes, at
                    ipa.c:546
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org

Created attachment 34109
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34109&action=edit
Somewhat reduced testcase

Running the Boost testsuite shows:

 % g++ -c -O2 -std=c++11 -w rule4.ii
rule4.ii:1265:15: internal compiler error: in remove_unreachable_nodes, at
ipa.c:546
               }
               ^
0xaf1cbb symbol_table::remove_unreachable_nodes(bool, _IO_FILE*)
        ../../gcc/gcc/ipa.c:546
0x1272dbc ipa_inline
        ../../gcc/gcc/ipa-inline.c:2193
0x1272dbc execute
        ../../gcc/gcc/ipa-inline.c:2558
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.

Adding -fno-ipa-icf fixes the issue.


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
@ 2014-11-25  9:52 ` rguenth at gcc dot gnu.org
  2014-11-25 14:01 ` marxin at gcc dot gnu.org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-25  9:52 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
   Target Milestone|---                         |5.0


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
  2014-11-25  9:52 ` [Bug ipa/64068] " rguenth at gcc dot gnu.org
@ 2014-11-25 14:01 ` marxin at gcc dot gnu.org
  2014-11-30 20:43 ` dimhen at gmail dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2014-11-25 14:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Introduced by r217973:

commit ca92a2511ecb05fb7c84df998723c257f23b6ca7
Author: hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Sat Nov 22 21:08:07 2014 +0000

        * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
clones
        as having abstract origin used.
        * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
origin check.
        (clone_inlined_nodes): Copy abstract originflag.
        * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
abstract origin node.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217973
138bc75d-0d04-0410-961f-82ee72b054a4

Martin
>From gcc-bugs-return-468512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 25 14:09:44 2014
Return-Path: <gcc-bugs-return-468512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25186 invoked by alias); 25 Nov 2014 14:09:44 -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 25131 invoked by uid 48); 25 Nov 2014 14:09:35 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/62238] [4.9/5 Regression] ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode)
Date: Tue, 25 Nov 2014 14:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-62238-4-yZhyKkZRg0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62238-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62238-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-11/txt/msg02984.txt.bz2
Content-length: 1109

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
This is a tree sharing issue, it reproduces with -O3 and a single concatenated
source as well.

Index: gcc/tree-predcom.c
==================================================================--- gcc/tree-predcom.c  (revision 218019)
+++ gcc/tree-predcom.c  (working copy)
@@ -1402,8 +1402,8 @@ ref_at_iteration (data_reference_p dr, i
     off = size_binop (PLUS_EXPR, off,
                      size_binop (MULT_EXPR, DR_STEP (dr), ssize_int (iter)));
   tree addr = fold_build_pointer_plus (DR_BASE_ADDRESS (dr), off);
-  addr = force_gimple_operand_1 (addr, stmts, is_gimple_mem_ref_addr,
-                                NULL_TREE);
+  addr = force_gimple_operand_1 (unshare_expr (addr), stmts,
+                                is_gimple_mem_ref_addr, NULL_TREE);
   tree alias_ptr = fold_convert (reference_alias_ptr_type (DR_REF (dr)),
coff);
   /* While data-ref analysis punts on bit offsets it still handles
      bitfield accesses at byte boundaries.  Cope with that.  Note that


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
  2014-11-25  9:52 ` [Bug ipa/64068] " rguenth at gcc dot gnu.org
  2014-11-25 14:01 ` marxin at gcc dot gnu.org
@ 2014-11-30 20:43 ` dimhen at gmail dot com
  2014-12-02 17:39 ` burnus at gcc dot gnu.org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dimhen at gmail dot com @ 2014-11-30 20:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Dmitry G. Dyachenko <dimhen at gmail dot com> ---
another testcase

$ /usr/local/gcc_current/bin/g++ -fpreprocessed -c -O2 x.ii
x.ii:46:19: internal compiler error: in remove_unreachable_nodes, at ipa.c:546
 void fn4() { B(); }
                   ^
0xb14713 symbol_table::remove_unreachable_nodes(bool, _IO_FILE*)
    /home/dimhen/src/gcc_current/gcc/ipa.c:546
0x189e60c ipa_inline
    /home/dimhen/src/gcc_current/gcc/ipa-inline.c:2193
0x189e60c execute
    /home/dimhen/src/gcc_current/gcc/ipa-inline.c:2558
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.

$ cat x.ii
typedef int PROV_ENUMALGS_EX, PCCRYPT_OID_INFO;
class A {
  int m_fn2();
  virtual bool m_fn1(PCCRYPT_OID_INFO);
};
int fn1();
void fn2();
int A::m_fn2() { m_fn1(0); }

bool fn3() {
  for (;;) {
    if (fn1()) {
      if (fn1() != 259)
        fn2();
      break;
    }
    return 1;
  }
  return 0;
}

class B {
public:
  B() { fn3(); }
};
class C : A {
  bool m_fn1(PCCRYPT_OID_INFO) { m_fn3(); }
  int isSupportedByProvider_algId;
  PROV_ENUMALGS_EX isSupportedByProvider_outEnumAlgs;
  PROV_ENUMALGS_EX isSupportedByProvider_enumAlgs;
  bool m_fn3() {
    while (1) {
      if (fn1()) {
        if (fn1() != 259)
          fn2();
        break;
      }
      if (isSupportedByProvider_algId)
        isSupportedByProvider_outEnumAlgs = isSupportedByProvider_enumAlgs;
      return 1;
    }
    return 0;
  }
};

void fn4() { B(); }


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-11-30 20:43 ` dimhen at gmail dot com
@ 2014-12-02 17:39 ` burnus at gcc dot gnu.org
  2014-12-20 10:04 ` adam at os dot inf.tu-dresden.de
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-12-02 17:39 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
*** Bug 64155 has been marked as a duplicate of this bug. ***


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-12-02 17:39 ` burnus at gcc dot gnu.org
@ 2014-12-20 10:04 ` adam at os dot inf.tu-dresden.de
  2015-01-15  4:24 ` hubicka at gcc dot gnu.org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: adam at os dot inf.tu-dresden.de @ 2014-12-20 10:04 UTC (permalink / raw)
  To: gcc-bugs

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

Adam Lackorzynski <adam at os dot inf.tu-dresden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adam at os dot inf.tu-dresden.de

--- Comment #4 from Adam Lackorzynski <adam at os dot inf.tu-dresden.de> ---
Created attachment 34304
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34304&action=edit
Another test-case

This is another test-case that triggers this ICE.

$ g++ -c  -std=c++0x -m32     -O2   t.i                           
t.i:105:1: internal compiler error: in remove_unreachable_nodes, at ipa.c:574
 }
 ^
0xb2a991 symbol_table::remove_unreachable_nodes(_IO_FILE*)
        ../../gcc/gcc/ipa.c:574
0x12bc193 ipa_inline
        ../../gcc/gcc/ipa-inline.c:2196
0x12bc193 execute
        ../../gcc/gcc/ipa-inline.c:2562
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.
zsh: exit 1     /usr/local/gcc/host-x86_64/head/bin/g++ -c -std=c++0x -m32 -O2 

$ g++ --version
g++ (GCC) 5.0.0 20141220 (experimental)

Adding -fno-ipa-icf also makes it go away.


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-12-20 10:04 ` adam at os dot inf.tu-dresden.de
@ 2015-01-15  4:24 ` hubicka at gcc dot gnu.org
  2015-01-15  4:27 ` hubicka at gcc dot gnu.org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hubicka at gcc dot gnu.org @ 2015-01-15  4:24 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I am testing:

Index: ../../gcc/ipa.c
===================================================================
--- ../../gcc/ipa.c     (revision 219631)
+++ ../../gcc/ipa.c     (working copy)
@@ -400,7 +400,6 @@
                       n = n->next_sibling_clone)
                    if (n->decl == DECL_ABSTRACT_ORIGIN (node->decl))
                      n->used_as_abstract_origin = true;
-                 enqueue_node (origin_node, &first, &reachable);
                }
            }
          /* If any symbol in a comdat group is reachable, force


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2015-01-15  4:24 ` hubicka at gcc dot gnu.org
@ 2015-01-15  4:27 ` hubicka at gcc dot gnu.org
  2015-01-15 17:12 ` marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hubicka at gcc dot gnu.org @ 2015-01-15  4:27 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |su at cs dot ucdavis.edu

--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
*** Bug 64559 has been marked as a duplicate of this bug. ***


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2015-01-15  4:27 ` hubicka at gcc dot gnu.org
@ 2015-01-15 17:12 ` marxin at gcc dot gnu.org
  2015-01-15 17:15 ` marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-01-15 17:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
I can confirm that the patch can compile all Chromium source files
(unfortunately I hit another issued during LINK phase: PR64583).

Apart from that, both testcases from this issue and PR64559 work (I prepared
patch which installs these testcases).

I run regression tests for c,c++ and no new regression is introduced.

Martin
>From gcc-bugs-return-473375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 15 17:13:15 2015
Return-Path: <gcc-bugs-return-473375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20135 invoked by alias); 15 Jan 2015 17:13:15 -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 20071 invoked by uid 48); 15 Jan 2015 17:13:09 -0000
From: "camden.lindsay at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/50928] m32c ICE building RTEMS
Date: Thu, 15 Jan 2015 17:13: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.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: camden.lindsay at gmail 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: cc
Message-ID: <bug-50928-4-wl6ySb3jOI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50928-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: 2015-01/txt/msg01369.txt.bz2
Content-length: 698

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

camden lindsay <camden.lindsay at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |camden.lindsay at gmail dot com

--- Comment #6 from camden lindsay <camden.lindsay at gmail dot com> ---
Hello-

I ran into the same error message as below while compiling for m32c
('error: unable to find a register to spill in class 'A_REGS'')

I applied the patches provided in Comment 5

Now the build succeeds.  Cannot test code coming out of the build, though.

newlib-2.2.0
binutils-2.25
gcc-4.9.2


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2015-01-15 17:12 ` marxin at gcc dot gnu.org
@ 2015-01-15 17:15 ` marxin at gcc dot gnu.org
  2015-01-15 17:30 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-01-15 17:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 34456
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34456&action=edit
Fix with new 2 testcases
>From gcc-bugs-return-473377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 15 17:23:08 2015
Return-Path: <gcc-bugs-return-473377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29923 invoked by alias); 15 Jan 2015 17:23: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 29875 invoked by uid 48); 15 Jan 2015 17:23:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/64614] bogus used initialized warning (in gcc 4.9.2 not in 4.8.3); switch statement versus &
Date: Thu, 15 Jan 2015 17:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: cc
Message-ID: <bug-64614-4-DS96wnKuJY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64614-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64614-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: 2015-01/txt/msg01371.txt.bz2
Content-length: 529

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I can't reproduce your claim about 4.8.  This warns for me with all compilers
I've tried back from 4.0 till latest trunk, including 4.8 and many others.


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2015-01-15 17:15 ` marxin at gcc dot gnu.org
@ 2015-01-15 17:30 ` marxin at gcc dot gnu.org
  2015-02-04 23:37 ` doko at gcc dot gnu.org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-01-15 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Thu Jan 15 17:29:23 2015
New Revision: 219672

URL: https://gcc.gnu.org/viewcvs?rev=219672&root=gcc&view=rev
Log:
Fix for PR64068 and PR64559.

    * g++.dg/ipa/pr64068.C: New test.
    * gcc.dg/ipa/PR64559.c: New test.
    PR ipa/64068
    PR ipa/64559
    * ipa.c (symbol_table::remove_unreachable_nodes):
    Do not put abstract origins into boundary.



Added:
    trunk/gcc/testsuite/g++.dg/ipa/pr64068.C
    trunk/gcc/testsuite/gcc.dg/ipa/PR64559.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-473381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 15 17:31:01 2015
Return-Path: <gcc-bugs-return-473381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9436 invoked by alias); 15 Jan 2015 17:31:01 -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 9387 invoked by uid 48); 15 Jan 2015 17:30:55 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
Date: Thu, 15 Jan 2015 17:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-64068-4-r21xjjPtfw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64068-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64068-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: 2015-01/txt/msg01375.txt.bz2
Content-length: 443

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

Martin Liška <marxin at gcc dot gnu.org> changed:

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

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed in 5.0.0.
>From gcc-bugs-return-473384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 15 18:02:41 2015
Return-Path: <gcc-bugs-return-473384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4248 invoked by alias); 15 Jan 2015 18:02:40 -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 3591 invoked by uid 48); 15 Jan 2015 18:02:33 -0000
From: "petschy at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64615] New: Access level check error: g++ thinks the non default ctor is protected while its public
Date: Thu, 15 Jan 2015 18:02: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: petschy at gmail 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: <bug-64615-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: 2015-01/txt/msg01378.txt.bz2
Content-length: 1185

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

            Bug ID: 64615
           Summary: Access level check error: g++ thinks the non default
                    ctor is protected while its public
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: petschy at gmail dot com

Access level is changed from protected (base class) to public (derived class)
via using declaration. The default ctor and the two overloaded member functions
are accessible, however the non-default ctor is not, g++ complains that it's
protected.

g++ 4.9 and 5.0 (20150115) give the same error messages.
cmdline:
g++-5.0.0 -Wall -std=c++11 20150115-using_base_ctor.cpp

----8<---8<---8<---8<---
class B
{
protected:
        B() { }
        B(int) { }
        void Foo() { }
        void Foo(int) { }
};
class D : public B
{
public:
        using B::B;
        using B::Foo;
};
void d_ctor()
{
        D d;
}
void d_ctor2()
{
        D d(0); // !
}
void d_foo(D* d)
{
        d->Foo();
}
void d_foo2(D* d)
{
        d->Foo(0);
}


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2015-01-15 17:30 ` marxin at gcc dot gnu.org
@ 2015-02-04 23:37 ` doko at gcc dot gnu.org
  2015-02-05  0:28 ` wmi at gcc dot gnu.org
  2015-02-19  0:44 ` ctice at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: doko at gcc dot gnu.org @ 2015-02-04 23:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Matthias Klose <doko at gcc dot gnu.org> ---
Author: doko
Date: Wed Feb  4 23:36:22 2015
New Revision: 220426

URL: https://gcc.gnu.org/viewcvs?rev=220426&root=gcc&view=rev
Log:
2015-02-04  Matthias Klose  <doko@ubuntu.com>

        PR target/64938
        Backport from mainline
        2015-01-15  Jan Hubicka  <hubicka@ucw.cz>

        PR ipa/64068
        PR ipa/64559
        * ipa.c (symbol_table::remove_unreachable_nodes):
        Do not put abstract origins into boundary.

2015-02-04  Matthias Klose  <doko@ubuntu.com>

        Backport from mainline
        2015-01-15  Martin Liska  <mliska@suse.cz>

        * g++.dg/ipa/pr64068.C: New test.
        * gcc.dg/ipa/PR64559.c: New test.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/g++.dg/ipa/pr64068.C
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/ipa/PR64559.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/ipa.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2015-02-04 23:37 ` doko at gcc dot gnu.org
@ 2015-02-05  0:28 ` wmi at gcc dot gnu.org
  2015-02-19  0:44 ` ctice at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: wmi at gcc dot gnu.org @ 2015-02-05  0:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from wmi at gcc dot gnu.org ---
Author: wmi
Date: Thu Feb  5 00:27:54 2015
New Revision: 220431

URL: https://gcc.gnu.org/viewcvs?rev=220431&root=gcc&view=rev
Log:
Backport from gcc-4_9-branch.
2015-02-04  Matthias Klose  <doko@ubuntu.com>

        PR target/64938
        Backport from mainline
        2015-01-15  Jan Hubicka  <hubicka@ucw.cz>

        PR ipa/64068
        PR ipa/64559
        * ipa.c (symbol_table::remove_unreachable_nodes):
        Do not put abstract origins into boundary.

Added:
    branches/google/gcc-4_9/gcc/testsuite/g++.dg/ipa/pr64068.C
    branches/google/gcc-4_9/gcc/testsuite/gcc.dg/ipa/PR64559.c
Modified:
    branches/google/gcc-4_9/gcc/ipa.c


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

* [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
  2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
                   ` (11 preceding siblings ...)
  2015-02-05  0:28 ` wmi at gcc dot gnu.org
@ 2015-02-19  0:44 ` ctice at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: ctice at gcc dot gnu.org @ 2015-02-19  0:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from ctice at gcc dot gnu.org ---
Author: ctice
Date: Thu Feb 19 00:43:33 2015
New Revision: 220805

URL: https://gcc.gnu.org/viewcvs?rev=220805&root=gcc&view=rev
Log:
Backport patch from Google 4.9 branch (r220431):

r220431 | wmi | 2015-02-04 16:27:54 -0800 (Wed, 04 Feb 2015) | 12 lines

Backport from gcc-4_9-branch.
2015-02-04  Matthias Klose  <doko@ubuntu.com>

        PR target/64938
        Backport from mainline
        2015-01-15  Jan Hubicka  <hubicka@ucw.cz>

        PR ipa/64068
        PR ipa/64559
        * ipa.c (symbol_table::remove_unreachable_nodes):
        Do not put abstract origins into boundary.


Added:
    branches/google/gcc-4_9-mobile/gcc/testsuite/g++.dg/ipa/pr64068.C
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/ipa/PR64559.c
Modified:
    branches/google/gcc-4_9-mobile/gcc/ipa.c


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

end of thread, other threads:[~2015-02-19  0:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-25  9:50 [Bug ipa/64068] New: [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546 trippels at gcc dot gnu.org
2014-11-25  9:52 ` [Bug ipa/64068] " rguenth at gcc dot gnu.org
2014-11-25 14:01 ` marxin at gcc dot gnu.org
2014-11-30 20:43 ` dimhen at gmail dot com
2014-12-02 17:39 ` burnus at gcc dot gnu.org
2014-12-20 10:04 ` adam at os dot inf.tu-dresden.de
2015-01-15  4:24 ` hubicka at gcc dot gnu.org
2015-01-15  4:27 ` hubicka at gcc dot gnu.org
2015-01-15 17:12 ` marxin at gcc dot gnu.org
2015-01-15 17:15 ` marxin at gcc dot gnu.org
2015-01-15 17:30 ` marxin at gcc dot gnu.org
2015-02-04 23:37 ` doko at gcc dot gnu.org
2015-02-05  0:28 ` wmi at gcc dot gnu.org
2015-02-19  0:44 ` ctice 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).