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/17766] [4.0 Regression] cc1 hangs in with -O3, works with -O2


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-08 00:35 -------
Here's an even shorter testcase.
It crashes with "-O3" or "-O -funswitch-loops"

======================================
struct A
{
  int i;
};

inline void foo(struct A* p)
{
  p->i || &p->i > 0 || p->i;
}

void bar(struct A* p, int j)
{
  for (;; foo(p))
    if (j && p->i)
      break;
}
======================================

Zdenek, your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-09/msg01057.html
seems to be responsible for the regression.

Could you please have a look?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
  GCC build triplet|powerpc-linux               |
   GCC host triplet|powerpc-linux               |
 GCC target triplet|powerpc-linux               |
           Keywords|                            |monitored
      Known to fail|                            |4.0.0
      Known to work|                            |3.4.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17766


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