This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37969] [4.3 Regression] "-O2 -funswitch-loops" causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org)
- From: "h dot mth at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2008 10:43:23 -0000
- Subject: [Bug tree-optimization/37969] [4.3 Regression] "-O2 -funswitch-loops" causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org)
- References: <bug-37969-13159@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from h dot mth at web dot de 2008-10-31 10:43 -------
Created an attachment (id=16596)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16596&action=view)
more reduced testcase
With one of these changes the ICE hides.
die@ana:/tmp $ cat hide01
--- b3dgeom.3.cpp.ice 2008-10-31 11:38:37.000000000 +0100
+++ b3dgeom.3.cpp 2008-10-31 11:38:46.000000000 +0100
@@ -1,7 +1,7 @@
#include <iostream>
class B3DRange {
double mnMinimum;
- double mnMaximum;
+// double mnMaximum;
public:
double getWidth() const {
if(mnMinimum)
die@ana:/tmp $ cat hide02
--- b3dgeom.3.cpp.ice 2008-10-31 11:38:37.000000000 +0100
+++ b3dgeom.3.cpp 2008-10-31 11:39:02.000000000 +0100
@@ -4,7 +4,7 @@
double mnMaximum;
public:
double getWidth() const {
- if(mnMinimum)
+ if(!mnMinimum)
return mnMinimum;
else
return 0.0;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37969