This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37526] [4.4 Regression] ICE using --combine -O2
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2008 19:38:14 -0000
- Subject: [Bug tree-optimization/37526] [4.4 Regression] ICE using --combine -O2
- References: <bug-37526-12684@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pinskia at gcc dot gnu dot org 2008-09-15 19:38 -------
Here is a short reduced testcase.
t1.i:
extern struct _IO_FILE *stderr;
typedef struct Node Node;
struct Node {
int type;
};
void Node_print(Node *node)
{
while (node->type == 0)
f(stderr);
f(stderr);
}
--- CUT ---
t2.i:
struct _IO_FILE { };
extern struct _IO_FILE *stderr;
--- CUT ---
Compile it as gcc t1.i t2.i -O2 -combine and you will get an ICE in FRE.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-09-15 19:38:14
date| |
Summary|ICE using --combine -O2 |[4.4 Regression] ICE using -
| |-combine -O2
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37526