public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/57718] New: ICE in execute_todo, passes.c:2002 at -O3 (both -m32 & -m64)
@ 2013-06-26 6:14 su at cs dot ucdavis.edu
2013-08-27 9:21 ` [Bug tree-optimization/57718] [4.9 Regression] " jakub at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: su at cs dot ucdavis.edu @ 2013-06-26 6:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57718
Bug ID: 57718
Summary: ICE in execute_todo, passes.c:2002 at -O3 (both -m32 &
-m64)
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: su at cs dot ucdavis.edu
With current gcc trunk on x86_64-linux, the following code causes an ICE when
compiled at -O3 (both -m32 and -m64). This is a regression from 4.8.x.
It may be related to 57592.
$ gcc-trunk -v
gcc version 4.9.0 20130625 (experimental) [trunk revision 200388] (GCC)
$ gcc-trunk -O2 -c reduced.c
$ gcc-4.8 -O3 -c reduced.c
$ gcc-trunk -O3 -c reduced.c
reduced.c: In function ‘foo’:
reduced.c:3:6: internal compiler error: Segmentation fault
void foo ()
^
0x7d729f crash_signal
../../gcc-trunk/gcc/toplev.c:333
0x7ff31b ssa_default_def(function*, tree_node*)
../../gcc-trunk/gcc/tree-dfa.c:314
0x7ff5e0 get_or_create_ssa_default_def(function*, tree_node*)
../../gcc-trunk/gcc/tree-dfa.c:362
0x8187fa get_reaching_def
../../gcc-trunk/gcc/tree-into-ssa.c:1184
0x81e96b maybe_replace_use
../../gcc-trunk/gcc/tree-into-ssa.c:1784
0x81e96b rewrite_update_stmt
../../gcc-trunk/gcc/tree-into-ssa.c:1967
0x81e96b rewrite_update_enter_block
../../gcc-trunk/gcc/tree-into-ssa.c:2136
0xb3801a walk_dominator_tree(dom_walk_data*, basic_block_def*)
../../gcc-trunk/gcc/domwalk.c:210
0x817503 rewrite_blocks
../../gcc-trunk/gcc/tree-into-ssa.c:2216
0x81dc1e update_ssa(unsigned int)
../../gcc-trunk/gcc/tree-into-ssa.c:3303
0x74a3db execute_function_todo
../../gcc-trunk/gcc/passes.c:1942
0x74ab7e execute_todo
../../gcc-trunk/gcc/passes.c:2002
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, c, d, e, f;
void foo ()
{
int g;
for (;;) {
f = 0;
for (; f <= 1; f++) {
a = 0;
for (; a <= 4; a++)
b |= a >= g;
if (d)
continue;
e = 0;
}
c = bar () < b;
}
}
>From gcc-bugs-return-425157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 26 06:37:20 2013
Return-Path: <gcc-bugs-return-425157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14237 invoked by alias); 26 Jun 2013 06:37:19 -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 14211 invoked by uid 48); 26 Jun 2013 06:37:14 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/57719] New: wrong code at -O3 on x86_64-linux-gnu
Date: Wed, 26 Jun 2013 06:37: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: su at cs dot ucdavis.edu
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-57719-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-06/txt/msg01536.txt.bz2
Content-length: 1315
http://gcc.gnu.org/bugzilla/show_bug.cgi?idW719
Bug ID: 57719
Summary: wrong code at -O3 on x86_64-linux-gnu
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: su at cs dot ucdavis.edu
Current gcc trunk (and gcc-4.8) produces wrong code for the following testcase
on x86_64-linux when compiled at -O3 in both 32-bit and 64-bit modes. This is a
regression from 4.7.x.
$ gcc-trunk -v
gcc version 4.9.0 20130625 (experimental) [trunk revision 200388] (GCC)
$ gcc-trunk -O2 reduced.c
$ a.out
1
$ gcc-4.7 -O3 reduced.c
$ a.out
1
$ gcc-4.8 -O3 reduced.c
$ a.out
0
$ gcc-trunk -O3 reduced.c
$ a.out
0
-----------------------------------------------------------------
int printf (const char *, ...);
int u;
int a, b, c[2], d, *e, f, g;
int fn2 ()
{
int t[1];
int i;
i = 0;
for (; i < 1; i++)
t[i] = 0;
for (d = 0; d; d = 1) {
int *s[1] = {&t[0]};
g = a = *s[0];
}
f = g;
return 1;
}
void fn1 ()
{
for (; b < 2; b++) {
int *p = &u;
*p = 0;
*p = fn2();
e = &c[b];
*e = 0;
}
}
int
main ()
{
fn1 ();
printf ("%d\n", u);
return 0;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/57718] [4.9 Regression] ICE in execute_todo, passes.c:2002 at -O3 (both -m32 & -m64)
2013-06-26 6:14 [Bug tree-optimization/57718] New: ICE in execute_todo, passes.c:2002 at -O3 (both -m32 & -m64) su at cs dot ucdavis.edu
@ 2013-08-27 9:21 ` jakub at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-27 9:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57718
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |DUPLICATE
Target Milestone|--- |4.9.0
Summary|ICE in execute_todo, |[4.9 Regression] ICE in
|passes.c:2002 at -O3 (both |execute_todo, passes.c:2002
|-m32 & -m64) |at -O3 (both -m32 & -m64)
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Dup.
*** This bug has been marked as a duplicate of bug 57393 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-27 9:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-26 6:14 [Bug tree-optimization/57718] New: ICE in execute_todo, passes.c:2002 at -O3 (both -m32 & -m64) su at cs dot ucdavis.edu
2013-08-27 9:21 ` [Bug tree-optimization/57718] [4.9 Regression] " 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).