public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58011] New: GCC segfaults at -O1
@ 2013-07-28 10:32 antoine.balestrat at gmail dot com
2013-07-28 19:35 ` [Bug tree-optimization/58011] " olegendo at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: antoine.balestrat at gmail dot com @ 2013-07-28 10:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58011
Bug ID: 58011
Summary: GCC segfaults at -O1
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: antoine.balestrat at gmail dot com
Using GCC 4.9.0 as of 20130728 :
$ cat seg.c
int a, b;
void f(unsigned p)
{
unsigned *pp = &p;
if(!a)
p = 0;
for(b = 0; b < 1; b++)
if(3 * p + 5 * *pp)
a = 0;
}
$ xgcc -O1 seg.c
seg.c: In function ‘f’:
seg.c:3:6: internal compiler error: Segmentation fault
void f(unsigned p)
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-426863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Jul 28 11:05:06 2013
Return-Path: <gcc-bugs-return-426863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31924 invoked by alias); 28 Jul 2013 11:05:06 -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 31840 invoked by uid 48); 28 Jul 2013 11:05:03 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58009] Elements with same value in vector subscript in variable definition context
Date: Sun, 28 Jul 2013 11:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
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-58009-4-dvmYj8zoOl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58009-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58009-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-07/txt/msg01370.txt.bz2
Content-length: 254
http://gcc.gnu.org/bugzilla/show_bug.cgi?idX009
--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
I also want to catch
a([i,j,i]) = ...
for which I cannot think of an algorithm which is O(n),
so I guess it will have to be O(n**2).
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/58011] GCC segfaults at -O1
2013-07-28 10:32 [Bug tree-optimization/58011] New: GCC segfaults at -O1 antoine.balestrat at gmail dot com
@ 2013-07-28 19:35 ` olegendo at gcc dot gnu.org
2013-09-04 17:48 ` eraman at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: olegendo at gcc dot gnu.org @ 2013-07-28 19:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58011
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-07-28
CC| |eraman at google dot com,
| |olegendo at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Oleg Endo <olegendo at gcc dot gnu.org> ---
With SVN rev 201282, SH cross compiler and -O2 I get:
internal compiler error: Segmentation fault
void f(unsigned p)
^
0x87a4250 crash_signal
../../gcc-trunk2/gcc/toplev.c:334
0x88f60c4 build_and_add_sum
../../gcc-trunk2/gcc/tree-ssa-reassoc.c:4473
0x88feb46 undistribute_ops_list
../../gcc-trunk2/gcc/tree-ssa-reassoc.c:1462
0x88ff334 reassociate_bb
../../gcc-trunk2/gcc/tree-ssa-reassoc.c:4244
0x88ff0e6 reassociate_bb
../../gcc-trunk2/gcc/tree-ssa-reassoc.c:4324
0x88ff0e6 reassociate_bb
../../gcc-trunk2/gcc/tree-ssa-reassoc.c:4324
0x88ff0e6 reassociate_bb
../../gcc-trunk2/gcc/tree-ssa-reassoc.c:4324
0x890118e do_reassoc
../../gcc-trunk2/gcc/tree-ssa-reassoc.c:4358
0x890118e execute_reassoc
../../gcc-trunk2/gcc/tree-ssa-reassoc.c:4440
Please submit a full bug report,
CC'ing Easwaran Raman who was the last to touch tree-ssa-reassoc.c according to
the changelog.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/58011] GCC segfaults at -O1
2013-07-28 10:32 [Bug tree-optimization/58011] New: GCC segfaults at -O1 antoine.balestrat at gmail dot com
2013-07-28 19:35 ` [Bug tree-optimization/58011] " olegendo at gcc dot gnu.org
@ 2013-09-04 17:48 ` eraman at gcc dot gnu.org
2014-02-28 9:01 ` olegendo at gcc dot gnu.org
2014-03-13 19:59 ` olegendo at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: eraman at gcc dot gnu.org @ 2013-09-04 17:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58011
--- Comment #2 from eraman at gcc dot gnu.org ---
Author: eraman
Date: Wed Sep 4 17:48:15 2013
New Revision: 202262
URL: http://gcc.gnu.org/viewcvs?rev=202262&root=gcc&view=rev
Log:
2013-09-04 Easwaran Raman <eraman@google.com>
PR middle-end/57370
PR tree-optimization/58011
* tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
(build_and_add_sum): Use it.
(appears_later_in_bb): Simplify code.
gcc/testsuite/ChangeLog:
2013-09-04 Easwaran Raman <eraman@google.com>
PR middle-end/57370
PR tree-optimization/58011
* gfortran.dg/reassoc_12.f90: New testcase.
* gcc.dg/tree-ssa/reassoc-31.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/reassoc-31.c
trunk/gcc/testsuite/gfortran.dg/reassoc_12.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-reassoc.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/58011] GCC segfaults at -O1
2013-07-28 10:32 [Bug tree-optimization/58011] New: GCC segfaults at -O1 antoine.balestrat at gmail dot com
2013-07-28 19:35 ` [Bug tree-optimization/58011] " olegendo at gcc dot gnu.org
2013-09-04 17:48 ` eraman at gcc dot gnu.org
@ 2014-02-28 9:01 ` olegendo at gcc dot gnu.org
2014-03-13 19:59 ` olegendo at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: olegendo at gcc dot gnu.org @ 2014-02-28 9:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58011
--- Comment #3 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Is this done? If so, can we close this PR?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/58011] GCC segfaults at -O1
2013-07-28 10:32 [Bug tree-optimization/58011] New: GCC segfaults at -O1 antoine.balestrat at gmail dot com
` (2 preceding siblings ...)
2014-02-28 9:01 ` olegendo at gcc dot gnu.org
@ 2014-03-13 19:59 ` olegendo at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: olegendo at gcc dot gnu.org @ 2014-03-13 19:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58011
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> ---
I take the silence as a 'yes'.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-13 19:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-28 10:32 [Bug tree-optimization/58011] New: GCC segfaults at -O1 antoine.balestrat at gmail dot com
2013-07-28 19:35 ` [Bug tree-optimization/58011] " olegendo at gcc dot gnu.org
2013-09-04 17:48 ` eraman at gcc dot gnu.org
2014-02-28 9:01 ` olegendo at gcc dot gnu.org
2014-03-13 19:59 ` olegendo 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).