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/37526] [4.4 Regression] ICE using --combine -O2



------- 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


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