public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/66168] New: ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677
@ 2015-05-15 20:33 su at cs dot ucdavis.edu
2015-05-16 11:22 ` [Bug rtl-optimization/66168] [6 Regression] " hjl.tools at gmail dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-05-15 20:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66168
Bug ID: 66168
Summary: ICE at -O3 in elimination_costs_in_insn, at
reload1.c:3677
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: su at cs dot ucdavis.edu
Target Milestone: ---
The following code causes an ICE when compiled with the current gcc trunk at
-O3 on x86_64-linux-gnu in both 32-bit and 64-bit modes.
This is a regression from 5.1.x.
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 6.0.0 20150515 (experimental) [trunk revision 223211] (GCC)
$
$ gcc-trunk -O2 -c small.c
$ gcc-5.1 -O3 -c small.c
$
$ gcc-trunk -O3 -c small.c
small.c: In function ‘fn1’:
small.c:15:1: internal compiler error: in elimination_costs_in_insn, at
reload1.c:3677
}
^
0xa660dc elimination_costs_in_insn
../../gcc-trunk/gcc/reload1.c:3674
0xa669aa calculate_elim_costs_all_insns()
../../gcc-trunk/gcc/reload1.c:1671
0x95637e ira_costs()
../../gcc-trunk/gcc/ira-costs.c:2238
0x9503c6 ira_build()
../../gcc-trunk/gcc/ira-build.c:3459
0x948714 ira
../../gcc-trunk/gcc/ira.c:5253
0x948714 execute
../../gcc-trunk/gcc/ira.c:5545
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.
$
-------------------------------
int a, b;
void
fn1 ()
{
for (;;)
{
for (b = 0; b < 3; b++)
{
char e[2];
char f = e[1];
a ^= f ? 1 / f : 0;
}
}
}
>From gcc-bugs-return-486384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 21:14:13 2015
Return-Path: <gcc-bugs-return-486384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 351 invoked by alias); 15 May 2015 21:14:12 -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 130988 invoked by uid 48); 15 May 2015 21:14:08 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/66146] call_once not C++11-compliant on ppc64le
Date: Fri, 15 May 2015 21:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
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-66146-4-RNphGNggTc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66146-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-05/txt/msg01224.txt.bz2
Content-length: 324
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf146
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> Thanks, Martin. So maybe something like this:
This happens on almost all non-x86 machines. I tested it on aarch64 and we had
the same failure as powerpc.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug rtl-optimization/66168] [6 Regression] ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677
2015-05-15 20:33 [Bug rtl-optimization/66168] New: ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677 su at cs dot ucdavis.edu
@ 2015-05-16 11:22 ` hjl.tools at gmail dot com
2015-05-18 2:41 ` thopre01 at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2015-05-16 11:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66168
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |6.0
Summary|ICE at -O3 in |[6 Regression] ICE at -O3
|elimination_costs_in_insn, |in
|at reload1.c:3677 |elimination_costs_in_insn,
| |at reload1.c:3677
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug rtl-optimization/66168] [6 Regression] ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677
2015-05-15 20:33 [Bug rtl-optimization/66168] New: ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677 su at cs dot ucdavis.edu
2015-05-16 11:22 ` [Bug rtl-optimization/66168] [6 Regression] " hjl.tools at gmail dot com
@ 2015-05-18 2:41 ` thopre01 at gcc dot gnu.org
2015-05-18 9:33 ` thopre01 at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: thopre01 at gcc dot gnu.org @ 2015-05-18 2:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66168
Thomas Preud'homme <thopre01 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |thopre01 at gcc dot gnu.org
--- Comment #2 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
I can reproduce. I start looking into it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug rtl-optimization/66168] [6 Regression] ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677
2015-05-15 20:33 [Bug rtl-optimization/66168] New: ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677 su at cs dot ucdavis.edu
2015-05-16 11:22 ` [Bug rtl-optimization/66168] [6 Regression] " hjl.tools at gmail dot com
2015-05-18 2:41 ` thopre01 at gcc dot gnu.org
@ 2015-05-18 9:33 ` thopre01 at gcc dot gnu.org
2015-05-19 5:07 ` thopre01 at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: thopre01 at gcc dot gnu.org @ 2015-05-18 9:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66168
--- Comment #3 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
I have a patch that pass bootstrap. Trying the testsuite now.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug rtl-optimization/66168] [6 Regression] ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677
2015-05-15 20:33 [Bug rtl-optimization/66168] New: ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677 su at cs dot ucdavis.edu
` (2 preceding siblings ...)
2015-05-18 9:33 ` thopre01 at gcc dot gnu.org
@ 2015-05-19 5:07 ` thopre01 at gcc dot gnu.org
2015-05-19 10:22 ` thopre01 at gcc dot gnu.org
2015-06-24 5:24 ` thopre01 at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: thopre01 at gcc dot gnu.org @ 2015-05-19 5:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66168
--- Comment #4 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
Testsuite came back ok. Will post patch shortly.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug rtl-optimization/66168] [6 Regression] ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677
2015-05-15 20:33 [Bug rtl-optimization/66168] New: ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677 su at cs dot ucdavis.edu
` (3 preceding siblings ...)
2015-05-19 5:07 ` thopre01 at gcc dot gnu.org
@ 2015-05-19 10:22 ` thopre01 at gcc dot gnu.org
2015-06-24 5:24 ` thopre01 at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: thopre01 at gcc dot gnu.org @ 2015-05-19 10:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66168
--- Comment #5 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
I just posted a patch: https://gcc.gnu.org/ml/gcc-patches/2015-05/msg01676.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug rtl-optimization/66168] [6 Regression] ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677
2015-05-15 20:33 [Bug rtl-optimization/66168] New: ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677 su at cs dot ucdavis.edu
` (4 preceding siblings ...)
2015-05-19 10:22 ` thopre01 at gcc dot gnu.org
@ 2015-06-24 5:24 ` thopre01 at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: thopre01 at gcc dot gnu.org @ 2015-06-24 5:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66168
Thomas Preud'homme <thopre01 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
Fixed in r223795
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-06-24 5:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-15 20:33 [Bug rtl-optimization/66168] New: ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677 su at cs dot ucdavis.edu
2015-05-16 11:22 ` [Bug rtl-optimization/66168] [6 Regression] " hjl.tools at gmail dot com
2015-05-18 2:41 ` thopre01 at gcc dot gnu.org
2015-05-18 9:33 ` thopre01 at gcc dot gnu.org
2015-05-19 5:07 ` thopre01 at gcc dot gnu.org
2015-05-19 10:22 ` thopre01 at gcc dot gnu.org
2015-06-24 5:24 ` thopre01 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).