This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/37969] [4.3 Regression] "-O2 -funswitch-loops" causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]