This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17766] [4.0 Regression] cc1 hangs in with -O3, works with -O2
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2004 00:35:43 -0000
- Subject: [Bug tree-optimization/17766] [4.0 Regression] cc1 hangs in with -O3, works with -O2
- References: <20041001071243.17766.olh@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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