public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14658] New: [lno] segfault when calling function twice in a loop
@ 2004-03-19 20:22 reichelt at gcc dot gnu dot org
2004-03-19 23:32 ` [Bug optimization/14658] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-03-19 20:22 UTC (permalink / raw)
To: gcc-bugs
The lno-branch segfaults when the following code snippet is compiled
with "-O2 -floop-optimize2":
==================================================
struct A
{
~A();
void foo(double);
};
void bar()
{
for ( int i=0; i<2; ++i )
{
A a;
a.foo(0.5);
a.foo(0.5);
}
}
==================================================
The regression was introduced by the Zdenek's patch:
http://gcc.gnu.org/ml/gcc-cvs/2004-03/msg00455.html
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg00772.html
Zdenek, could you please have a look?
--
Summary: [lno] segfault when calling function twice in a loop
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,rakdver at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14658
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/14658] [lno] segfault when calling function twice in a loop
2004-03-19 20:22 [Bug c++/14658] New: [lno] segfault when calling function twice in a loop reichelt at gcc dot gnu dot org
@ 2004-03-19 23:32 ` pinskia at gcc dot gnu dot org
2004-03-19 23:34 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-19 23:32 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |optimization
Target Milestone|--- |lno
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14658
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/14658] [lno] segfault when calling function twice in a loop
2004-03-19 20:22 [Bug c++/14658] New: [lno] segfault when calling function twice in a loop reichelt at gcc dot gnu dot org
2004-03-19 23:32 ` [Bug optimization/14658] " pinskia at gcc dot gnu dot org
@ 2004-03-19 23:34 ` pinskia at gcc dot gnu dot org
2004-03-19 23:39 ` cvs-commit at gcc dot gnu dot org
2004-03-19 23:43 ` rakdver at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-19 23:34 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |lno
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14658
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/14658] [lno] segfault when calling function twice in a loop
2004-03-19 20:22 [Bug c++/14658] New: [lno] segfault when calling function twice in a loop reichelt at gcc dot gnu dot org
2004-03-19 23:32 ` [Bug optimization/14658] " pinskia at gcc dot gnu dot org
2004-03-19 23:34 ` pinskia at gcc dot gnu dot org
@ 2004-03-19 23:39 ` cvs-commit at gcc dot gnu dot org
2004-03-19 23:43 ` rakdver at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-19 23:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-19 23:39 -------
Subject: Bug 14658
CVSROOT: /cvs/gcc
Module name: gcc
Branch: lno-branch
Changes by: rakdver@gcc.gnu.org 2004-03-19 23:39:19
Modified files:
gcc : ChangeLog.lno loop-invariant.c
Log message:
PR optimization/14658
* loop-invariant.c (move_invariant_reg): Handle assignments
with nontrivial lhs correctly.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.lno.diff?cvsroot=gcc&only_with_tag=lno-branch&r1=1.1.2.92&r2=1.1.2.93
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/loop-invariant.c.diff?cvsroot=gcc&only_with_tag=lno-branch&r1=1.1.4.4&r2=1.1.4.5
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14658
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/14658] [lno] segfault when calling function twice in a loop
2004-03-19 20:22 [Bug c++/14658] New: [lno] segfault when calling function twice in a loop reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-03-19 23:39 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-19 23:43 ` rakdver at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2004-03-19 23:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rakdver at gcc dot gnu dot org 2004-03-19 23:43 -------
Fixed by
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg01646.html.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14658
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-03-19 23:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19 20:22 [Bug c++/14658] New: [lno] segfault when calling function twice in a loop reichelt at gcc dot gnu dot org
2004-03-19 23:32 ` [Bug optimization/14658] " pinskia at gcc dot gnu dot org
2004-03-19 23:34 ` pinskia at gcc dot gnu dot org
2004-03-19 23:39 ` cvs-commit at gcc dot gnu dot org
2004-03-19 23:43 ` rakdver at gcc dot gnu dot 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).