* [Bug c++/60820] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
@ 2014-04-11 13:41 ` mliska at suse dot cz
2014-04-11 14:39 ` [Bug lto/60820] [4.9 Regression] " trippels at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mliska at suse dot cz @ 2014-04-11 13:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
--- Comment #1 from Martin Liška <mliska at suse dot cz> ---
testcase:
cat a.c:
#include <netinet/in.h>
#include <stdio.h>
static const struct in6_addr local_in6addr_any = IN6ADDR_ANY_INIT;
#pragma weak in6addr_any = local_in6addr_any
__attribute__ ((used))
void foo()
{
fprintf (stderr, "v1: %p, v2: %p\n", &local_in6addr_any, &in6addr_any);
}
gcc -flto -O2 -c a.c -o a.o
gcc -flto -O2 -c a.c -o b.o
gcc -flto -O2 a.o b.o
>From gcc-bugs-return-448819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Apr 11 13:44:48 2014
Return-Path: <gcc-bugs-return-448819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13719 invoked by alias); 11 Apr 2014 13:44:48 -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 13667 invoked by uid 48); 11 Apr 2014 13:44:44 -0000
From: "lavr at ncbi dot nlm.nih.gov" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/60100] warning disappears when preprocessed source is compiled
Date: Fri, 11 Apr 2014 13:44: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.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lavr at ncbi dot nlm.nih.gov
X-Bugzilla-Status: WAITING
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:
Message-ID: <bug-60100-4-pj0X2N4IYZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60100-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60100-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-04/txt/msg00839.txt.bz2
Content-length: 352
http://gcc.gnu.org/bugzilla/show_bug.cgi?id`100
--- Comment #10 from lavr at ncbi dot nlm.nih.gov ---
> I guess also a dup of PR57201.
While I can agree these cases (and the one mentioned within PR57201) look
similar, the gravity of the disappearing warning in case of a mismatched type
is more severe than an unused variable or no-effect code...
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/60820] [4.9 Regression] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
2014-04-11 13:41 ` [Bug c++/60820] " mliska at suse dot cz
@ 2014-04-11 14:39 ` trippels at gcc dot gnu.org
2014-04-11 17:40 ` [Bug lto/60820] [4.9/4.10 " hubicka at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-04-11 14:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Known to work| |4.7.3, 4.8.3
Last reconfirmed| |2014-04-11
Component|c++ |lto
CC| |trippels at gcc dot gnu.org
Ever confirmed|0 |1
Summary|ice in ctor_for_folding, at |[4.9 Regression] ice in
|varpool.c:291 |ctor_for_folding, at
| |varpool.c:291
Target Milestone|--- |4.9.0
Known to fail| |4.9.0
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
copying a.c to b.c and renaming foo() to bar() makes the testcase valid I
guess.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
2014-04-11 13:41 ` [Bug c++/60820] " mliska at suse dot cz
2014-04-11 14:39 ` [Bug lto/60820] [4.9 Regression] " trippels at gcc dot gnu.org
@ 2014-04-11 17:40 ` hubicka at gcc dot gnu.org
2014-04-11 19:33 ` hubicka at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2014-04-11 17:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
mine.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
` (2 preceding siblings ...)
2014-04-11 17:40 ` [Bug lto/60820] [4.9/4.10 " hubicka at gcc dot gnu.org
@ 2014-04-11 19:33 ` hubicka at gcc dot gnu.org
2014-04-14 17:54 ` hubicka at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2014-04-11 19:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I am testing the following
Index: /aux/hubicka/trunk-test/gcc/varpool.c
===================================================================
--- /aux/hubicka/trunk-test/gcc/varpool.c (revision 209170)
+++ /aux/hubicka/trunk-test/gcc/varpool.c (working copy)
@@ -166,7 +166,9 @@ varpool_remove_node (varpool_node *node)
/* Because we remove references from external functions before final
compilation,
we may end up removing useful constructors.
FIXME: We probably want to trace boundaries better. */
- if ((init = ctor_for_folding (node->decl)) == error_mark_node)
+ if (cgraph_state == CGRAPH_LTO_STREAMING)
+ ;
+ else if ((init = ctor_for_folding (node->decl)) == error_mark_node)
varpool_remove_initializer (node);
else
DECL_INITIAL (node->decl) = init;
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
` (3 preceding siblings ...)
2014-04-11 19:33 ` hubicka at gcc dot gnu.org
@ 2014-04-14 17:54 ` hubicka at gcc dot gnu.org
2014-04-15 10:24 ` mliska at suse dot cz
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2014-04-14 17:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Mon Apr 14 17:53:34 2014
New Revision: 209389
URL: http://gcc.gnu.org/viewcvs?rev=209389&root=gcc&view=rev
Log:
PR lto/60820
* varpool.c (varpool_remove_node): Do not alter decls when streaming.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/varpool.c
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
` (4 preceding siblings ...)
2014-04-14 17:54 ` hubicka at gcc dot gnu.org
@ 2014-04-15 10:24 ` mliska at suse dot cz
2014-04-15 19:35 ` hubicka at ucw dot cz
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mliska at suse dot cz @ 2014-04-15 10:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
--- Comment #6 from Martin Liška <mliska at suse dot cz> ---
Patch works for me for net-misc/nx package. Will you merge the patch to gcc-4.9
branch?
>From gcc-bugs-return-449048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 15 10:29:50 2014
Return-Path: <gcc-bugs-return-449048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13486 invoked by alias); 15 Apr 2014 10:29:49 -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 13458 invoked by uid 48); 15 Apr 2014 10:29:44 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/60844] New: [4.9/4.10 Regression] ICE in reassoc_stmt_dominates_stmt_p
Date: Tue, 15 Apr 2014 10:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter
Message-ID: <bug-60844-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-04/txt/msg01068.txt.bz2
Content-length: 771
http://gcc.gnu.org/bugzilla/show_bug.cgi?id`844
Bug ID: 60844
Summary: [4.9/4.10 Regression] ICE in
reassoc_stmt_dominates_stmt_p
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
void
foo (int *x, int y, int z)
{
int b, c = x[0], d = x[1];
for (b = 0; b < 1; b++)
{
int e = (y ? 1 : 0) | (d ? 2 : 0) | (z ? 1 : 0);
e |= (c ? 2 : 0) | ((1 >> b) ? 1 : 0);
x[2 + b] = e;
}
}
ICEs at -O2 -g -mtune=atom on x86_64/i686, starting with r203979.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
` (5 preceding siblings ...)
2014-04-15 10:24 ` mliska at suse dot cz
@ 2014-04-15 19:35 ` hubicka at ucw dot cz
2014-04-17 2:33 ` hubicka at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at ucw dot cz @ 2014-04-15 19:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
--- Comment #7 from Jan Hubicka <hubicka at ucw dot cz> ---
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
>
> --- Comment #6 from Martin Liška <mliska at suse dot cz> ---
> Patch works for me for net-misc/nx package. Will you merge the patch to gcc-4.9
> branch?
Richard approved it for 4.9.1
Honza
>From gcc-bugs-return-449108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 15 19:37:59 2014
Return-Path: <gcc-bugs-return-449108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11366 invoked by alias); 15 Apr 2014 19:37:59 -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 11344 invoked by uid 48); 15 Apr 2014 19:37:55 -0000
From: "nevin at eviloverlord dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60852] boost::has_complement of enum class does not compile
Date: Tue, 15 Apr 2014 19:37: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.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nevin at eviloverlord 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:
Message-ID: <bug-60852-4-Ii60Welroj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60852-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-04/txt/msg01128.txt.bz2
Content-length: 199
http://gcc.gnu.org/bugzilla/show_bug.cgi?id`852
--- Comment #1 from Nevin Liber <nevin at eviloverlord dot com> ---
Also filed this as a Boost bug at https://svn.boost.org/trac/boost/ticket/9913
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
` (6 preceding siblings ...)
2014-04-15 19:35 ` hubicka at ucw dot cz
@ 2014-04-17 2:33 ` hubicka at gcc dot gnu.org
2014-04-22 11:35 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2014-04-17 2:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
--- Comment #8 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Thu Apr 17 02:32:26 2014
New Revision: 209460
URL: http://gcc.gnu.org/viewcvs?rev=209460&root=gcc&view=rev
Log:
PR lto/60820
* gcc.dg/lto/pr60820_0.c: New testcase.
* gcc.dg/lto/pr60820_1.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/lto/pr60820_0.c
trunk/gcc/testsuite/gcc.dg/lto/pr60820_1.c
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
` (7 preceding siblings ...)
2014-04-17 2:33 ` hubicka at gcc dot gnu.org
@ 2014-04-22 11:35 ` jakub at gcc dot gnu.org
2014-05-21 2:32 ` hubicka at gcc dot gnu.org
2014-05-21 23:07 ` hubicka at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-04-22 11:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.9.0 |4.9.1
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.0 has been released
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
` (8 preceding siblings ...)
2014-04-22 11:35 ` jakub at gcc dot gnu.org
@ 2014-05-21 2:32 ` hubicka at gcc dot gnu.org
2014-05-21 23:07 ` hubicka at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2014-05-21 2:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Wed May 21 02:32:00 2014
New Revision: 210671
URL: http://gcc.gnu.org/viewcvs?rev=210671&root=gcc&view=rev
Log:
PR lto/60820
* varpool.c (varpool_remove_node): Do not alter decls when streaming.
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/varpool.c
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291
2014-04-11 13:09 [Bug c++/60820] New: ice in ctor_for_folding, at varpool.c:291 mliska at suse dot cz
` (9 preceding siblings ...)
2014-05-21 2:32 ` hubicka at gcc dot gnu.org
@ 2014-05-21 23:07 ` hubicka at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2014-05-21 23:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #11 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
fixed.
^ permalink raw reply [flat|nested] 12+ messages in thread