* [Bug c++/45393] Internal compiler error
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
@ 2010-08-24 6:52 ` petrsup at gmail dot com
2010-08-24 6:56 ` petrsup at gmail dot com
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: petrsup at gmail dot com @ 2010-08-24 6:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from petrsup at gmail dot com 2010-08-24 06:52 -------
Created an attachment (id=21552)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21552&action=view)
Preprocessed file
Preprocessed file on which compiler failed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/45393] Internal compiler error
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
2010-08-24 6:52 ` [Bug c++/45393] " petrsup at gmail dot com
@ 2010-08-24 6:56 ` petrsup at gmail dot com
2010-08-24 8:52 ` rguenth at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: petrsup at gmail dot com @ 2010-08-24 6:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from petrsup at gmail dot com 2010-08-24 06:56 -------
Created an attachment (id=21553)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21553&action=view)
Preprocessed file
Preprocessed file on which compiler fails. (with correct mime-type)
--
petrsup at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #21552|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/45393] Internal compiler error
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
2010-08-24 6:52 ` [Bug c++/45393] " petrsup at gmail dot com
2010-08-24 6:56 ` petrsup at gmail dot com
@ 2010-08-24 8:52 ` rguenth at gcc dot gnu dot org
2010-08-24 9:13 ` [Bug middle-end/45393] [4.5/4.6 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135 rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-24 8:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-08-24 08:52 -------
Reducing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/45393] [4.5/4.6 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
` (2 preceding siblings ...)
2010-08-24 8:52 ` rguenth at gcc dot gnu dot org
@ 2010-08-24 9:13 ` rguenth at gcc dot gnu dot org
2010-08-24 13:58 ` hjl dot tools at gmail dot com
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-24 9:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2010-08-24 09:12 -------
Confirmed. Reduced testcase, ICEs at -O1:
class FloatPoint;
class Path {
public:
~Path();
void moveTo(const FloatPoint&);
static void createEllipse(const FloatPoint& center, float rx, float ry);
};
extern "C" {
extern float cosf (float);
extern float sinf (float);
}
const float piFloat = static_cast<float>(3.14159265358979323846);
class FloatPoint {
public:
FloatPoint(float x, float y) : m_x(x), m_y(y) { }
float x() const;
float y() const;
float m_x, m_y;
};
void Path::createEllipse(const FloatPoint& center, float rx, float ry)
{
float cx = center.x();
float cy = center.y();
Path path;
float x = cx;
float y = cy;
unsigned step = 0, num = 100;
while (1) {
float angle = static_cast<float>(step) / num * 2.0f * piFloat;
x = cx + cosf(angle) * rx;
y = cy + sinf(angle) * ry;
step++;
if (step == 1)
path.moveTo(FloatPoint(x, y));
}
}
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|c++ |middle-end
Ever Confirmed|0 |1
Known to fail| |4.5.0 4.5.1 4.6.0
Known to work| |4.4.4
Last reconfirmed|0000-00-00 00:00:00 |2010-08-24 09:12:56
date| |
Summary|Internal compiler error |[4.5/4.6 Regression] ICE in
| |redirect_eh_edge_1, at tree-
| |eh.c:2135
Target Milestone|--- |4.5.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/45393] [4.5/4.6 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
` (3 preceding siblings ...)
2010-08-24 9:13 ` [Bug middle-end/45393] [4.5/4.6 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135 rguenth at gcc dot gnu dot org
@ 2010-08-24 13:58 ` hjl dot tools at gmail dot com
2010-08-24 15:38 ` hjl dot tools at gmail dot com
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-08-24 13:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl dot tools at gmail dot com 2010-08-24 13:58 -------
For gcc 4.3 and 4.4, I got
pr45393.cc:20: error: BB 4 can not throw but has EH edges
pr45393.cc:20: error: BB 5 can not throw but has EH edges
pr45393.cc:20: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
when checking is enabled.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/45393] [4.5/4.6 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
` (4 preceding siblings ...)
2010-08-24 13:58 ` hjl dot tools at gmail dot com
@ 2010-08-24 15:38 ` hjl dot tools at gmail dot com
2010-08-24 19:16 ` hjl dot tools at gmail dot com
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-08-24 15:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hjl dot tools at gmail dot com 2010-08-24 15:38 -------
Revision 146776:
http://gcc.gnu.org/ml/gcc-cvs/2009-04/msg01418.html
turns
pr45393.cc:20: error: BB 4 can not throw but has EH edges
pr45393.cc:20: error: BB 5 can not throw but has EH edges
pr45393.cc:20: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
into
pr45393.cc:20: internal compiler error: in redirect_eh_edge, at tree-eh.c:2042
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/45393] [4.5/4.6 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
` (5 preceding siblings ...)
2010-08-24 15:38 ` hjl dot tools at gmail dot com
@ 2010-08-24 19:16 ` hjl dot tools at gmail dot com
2010-08-25 8:44 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-08-24 19:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from hjl dot tools at gmail dot com 2010-08-24 19:16 -------
(In reply to comment #5)
> For gcc 4.3 and 4.4, I got
>
> pr45393.cc:20: error: BB 4 can not throw but has EH edges
> pr45393.cc:20: error: BB 5 can not throw but has EH edges
> pr45393.cc:20: internal compiler error: verify_flow_info failed
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://gcc.gnu.org/bugs.html> for instructions.
>
> when checking is enabled.
>
This bug is triggered by revision 121052:
http://gcc.gnu.org/ml/gcc-cvs/2007-01/msg00757.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/45393] [4.5/4.6 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
` (6 preceding siblings ...)
2010-08-24 19:16 ` hjl dot tools at gmail dot com
@ 2010-08-25 8:44 ` rguenth at gcc dot gnu dot org
2010-08-25 10:48 ` [Bug middle-end/45393] [4.5 " rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-25 8:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2010-08-25 08:43 -------
Mine then.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2010-08-24 09:12:56 |2010-08-25 08:43:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/45393] [4.5 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
` (7 preceding siblings ...)
2010-08-25 8:44 ` rguenth at gcc dot gnu dot org
@ 2010-08-25 10:48 ` rguenth at gcc dot gnu dot org
2010-08-25 10:48 ` [Bug middle-end/45393] [4.5/4.6 " rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-25 10:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from rguenth at gcc dot gnu dot org 2010-08-25 10:48 -------
Fixed on trunk sofar.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.5.0 4.5.1 4.6.0 |4.5.0 4.5.1
Known to work|4.4.4 |4.4.4 4.6.0
Summary|[4.5/4.6 Regression] ICE in |[4.5 Regression] ICE in
|redirect_eh_edge_1, at tree-|redirect_eh_edge_1, at tree-
|eh.c:2135 |eh.c:2135
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/45393] [4.5/4.6 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
` (8 preceding siblings ...)
2010-08-25 10:48 ` [Bug middle-end/45393] [4.5 " rguenth at gcc dot gnu dot org
@ 2010-08-25 10:48 ` rguenth at gcc dot gnu dot org
2010-08-30 13:32 ` [Bug middle-end/45393] [4.5 " hjl at gcc dot gnu dot org
2010-08-30 16:00 ` rguenth at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-25 10:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rguenth at gcc dot gnu dot org 2010-08-25 10:48 -------
Subject: Bug 45393
Author: rguenth
Date: Wed Aug 25 10:47:50 2010
New Revision: 163541
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163541
Log:
2010-08-25 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45393
* tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
and clean EH info. Avoid SSA update.
(execute_cse_sincos): Cleanup the CFG if it has changed.
* g++.dg/torture/pr45393.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr45393.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-math-opts.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/45393] [4.5 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
` (9 preceding siblings ...)
2010-08-25 10:48 ` [Bug middle-end/45393] [4.5/4.6 " rguenth at gcc dot gnu dot org
@ 2010-08-30 13:32 ` hjl at gcc dot gnu dot org
2010-08-30 16:00 ` rguenth at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: hjl at gcc dot gnu dot org @ 2010-08-30 13:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from hjl at gcc dot gnu dot org 2010-08-30 13:32 -------
Subject: Bug 45393
Author: hjl
Date: Mon Aug 30 13:32:18 2010
New Revision: 163642
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163642
Log:
Properly transfer and clean EH info when CSE sincos.
gcc/
2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline
2010-08-25 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45393
* tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
and clean EH info. Avoid SSA update.
(execute_cse_sincos): Cleanup the CFG if it has changed.
gcc/testsuite/
2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline
2010-08-25 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45393
* g++.dg/torture/pr45393.C: New testcase.
Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/torture/pr45393.C
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/tree-ssa-math-opts.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/45393] [4.5 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2135
2010-08-24 6:48 [Bug c++/45393] New: Internal compiler error petrsup at gmail dot com
` (10 preceding siblings ...)
2010-08-30 13:32 ` [Bug middle-end/45393] [4.5 " hjl at gcc dot gnu dot org
@ 2010-08-30 16:00 ` rguenth at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-30 16:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from rguenth at gcc dot gnu dot org 2010-08-30 16:00 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to work|4.4.4 4.6.0 |4.4.4 4.5.2 4.6.0
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45393
^ permalink raw reply [flat|nested] 13+ messages in thread